grafana's percent_diff equivalent in Prometheus

19 views
Skip to first unread message

Yashar Nesabian

unread,
Jun 23, 2020, 7:24:28 AM6/23/20
to Prometheus Users
Hi
We have a query in grafana and an alert on grafana which calculates the percent_diff of the given query. 
Now we want to move this alert to the Prometheus rule file.
I wonder what is the equivalent query of percent_diff on Prometheus.
Here is the query:
sum(rate(netdata_web_log_detailed_response_codes_total{host=~"^api-.*"}[5m]))

here is the alert rule in grafana:


Reply all
Reply to author
Forward
0 new messages