max_over_time with dynamic time range

837 views
Skip to first unread message

Rémi Verchère

unread,
Aug 31, 2017, 1:58:37 AM8/31/17
to Prometheus Users
Hello,

I'm trying to get the max value of a metric (ifOperStatus) using grafana and a Singlestat panel.
For now I do the following request:
- max_over_time(ifOperStatus{job='snmp',instance='$Device',ifDescr='$Interface'}[1d])



I would like to make the [1d] range-vector configurable when modifying the time range in grafana dashboard. For now, I have only the latest max value for the last day.

Is it possible, and how?

Thanks for your help,

Rémi

Brian Brazil

unread,
Aug 31, 2017, 4:32:39 AM8/31/17
to Rémi Verchère, Prometheus Users

Brian
 

Thanks for your help,

Rémi

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/JF3fK7nynkfqpfahEUz3I9MLji8N7HHNNYO9Npfdufy6HOpm4u4y2s2R1NYMZ77PqxPkj_Myd1v2bwxQ5UvRHwyNNXX0P9ziISLQ6ytDlXo%3D%40verchere.fr.
For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages