PCA (Prometheus Certified Associate) sample exam question with answer 320
Question:
Which of the following is a valid Prometheus query language expression?
- avg(up{job="prometheus"})
- up{job="prometheus"} | rate
- max_over_time(up{job="prometheus"}[5m])
- up{job="prometheus"} > 0.5
Answer:
C - is a valid Prometheus query language expression that calculates the maximum value of the up metric over the last 5 minutes for targets with the job="prometheus" label