I would like to change the interval on Grafana. Actually the interval is set to 30s automatically and I couldn't change it.
. I have a simple query that qet the value of a metric fom prometheus.
I would like to reduce the interval in order to get more data. I notice that ctrl+z inhance the ineterval automatically. Is there a way to reduce it ? Thank you
I don't you could do this (nor should).
Grafana is not supposed to be used in this way. It visualizes graph based on available panel width and selected dashboard time range. You can select really small time range, and resolution of shown values will be maximal automatically.
Outside of that best I can suggest for you: use some aggregation over interval Grafana uses as one tick. Something like:
sum_over_time(node_cpu_seconds_total[$__interval])
And don't forget to add $__interval to panel name to see over what range aggregation is taken. Something like May metric (aggregation over $__interval).
But in this case rank of shown values will change drastically with change of dashboard's time range.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With