Skip to content

Graphs in prom

Course: Prometheus and Grafana - chapter 12

Prometheus also lets you visualise data as graphs

Lets see a few queries

💡 As you can tell, this is a very vague metric since it is cumulative. It is the total number of requests, but you usually want to see the rate at which requests are coming.

3. Rate of all the requests (sum up /metrics and /user requests)

Section titled “3. Rate of all the requests (sum up /metrics and /user requests)”

4. Average HTTP request duration with timeseries (5 minute buckets)

Section titled “4. Average HTTP request duration with timeseries (5 minute buckets)”
rate(http_request_duration_ms_sum[5m]) / rate(http_request_duration_ms_count[5m])