series selector
The part of a PromQL query that names a metric and optional label matchers, choosing which time series take part.
In more detail
A bare metric name selects the whole family of series; matchers in braces narrow it. Read a selector as a sentence: start with the family, then say which dimensions belong in the answer.
Example
http_requests_total{route="/checkout",status=~"5.."}Related terms
- label matcher — A condition on a label inside a PromQL selector: = for an exact value, != to exclude, =~ and !~ for regular expressions.
- PromQL — The query language of Prometheus, used to select time series and calculate rates, sums and percentiles from them.
- instant vector — A PromQL result holding one current value for each matching series, with that series' labels kept beside it.
Taught in
- PromQL Basics And Selectors — Full-Stack Observability: Metrics, Tracing & Logging
- Grafana: Connecting The Data Source — Full-Stack Observability: Metrics, Tracing & Logging