Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 973 Bytes

PromQL.md

File metadata and controls

29 lines (23 loc) · 973 Bytes

PromQL

The below queries are based on the metrics outputted by my sample Scala app -> https://github.com/MarkVee87/ScalaAkkaHttp_StartingPoint

View the cumulative count of metrics per histogram bucket (le)

span_processing_time_seconds_bucket

View the increase of metrics per histogram bucket (le) during a give time period (2m)

increase(span_processing_time_seconds_bucket[2m])

View the 99th percentile response time during a give time period (2m)

histogram_quantile(0.99, sum(rate(span_processing_time_seconds_bucket[2m])) by (le))

View the transactions per second during a give time period (2m)

Wrap the below query in sum() if aggregating metrics from more than one instance

rate(http_server_requests_total[2m])

View a sum of a given metric (e.g. up), with a filter, grouped by a particular label

sum(up{some_label_to_filter_on=~".*value_contains.*"}) by (label_to_group_by)