prometheusgrafanaprometheus-node-exportergrafana-api

Is there a way in prometheus to count how many records exists using promQl?


I have been using Prometheus as a data source in Grafana lately, but there are so many limitation to Prometheus. for example have a look at these records that exists in my localhost:9090 where Prometheus located: enter image description here. This image shows some of my records in one of my targets. Can you help me write a query using promQl that can return to me the number of records appeared in last 5 minutes for example?

Can you help me write a query using promQl that can return to me the number of records appeared in last 5 minutes for example?


Solution

  • count_over_time(http_requests_total[5m])

    see promql examples and promql cheat sheet