Prometheus and PromQL 3 · Selecting data

Filter by labels

Match labels exactly with = and !=, or by regular expression with =~ and !~.

http_requests_total{job="api", status=~"5..", method!="OPTIONS"}

Official Prometheus and PromQL 3 documentation

More selecting data commands

All selecting data commands · Prometheus and PromQL 3 cheatsheet

Was this page helpful?