To calculate the number of times the values of a metric's labels have changed using PromQL and Grafana, follow these steps:
http_requests_total
and the label is method
, the PromQL query would be http_requests_total{method="GET"}[6h]
.count_values("method",http_requests_total{method="GET"})
.By following these steps, you can use PromQL and Grafana to analyze and visualize the number of times the values of a metric's labels have changed over time.
Asked: 2023-07-18 01:15:41 +0000
Seen: 12 times
Last updated: Jul 18 '23