PCA (Prometheus Certified Associate) sample exam question with answer 123
Question:
Which of the following are valid grouping operators in PromQL for aggregating over dimensions?
- by
- on
- without
- group
Answer:
A, B - The valid grouping operators in PromQL for aggregating over dimensions are by and on. The by operator groups time series by the given label(s), and the on operator specifies which labels should be included in the result