label matcher

A condition on a label inside a PromQL selector: = for an exact value, != to exclude, =~ and !~ for regular expressions.

In more detail

Exact matching asks for one known value, a regular expression can match several, and a negative matcher excludes a class such as health checks. Every matcher changes which series enter the result.

Examples

{route!="/healthz"}
{status=~"5.."}

Related terms

Taught in

References

Certification courses