Linux Foundation
PCA
Q1:
How would you add text from the instance label to the alert's description for the following alert?
alert: InstanceDown
expr: up == 0
for: 5m
labels:
severity: page
annotations:
description: "Instance INSTANCE_NAME_HERE down"
○
A
Use $labels.instance instead of INSTANCE_NAME_HERE○
B
Use $value.instance instead of INSTANCE_NAME_HERE○
C
Use $expr.instance instead of INSTANCE_NAME_HERE○
D
Use $metric.instance instead of INSTANCE_NAME_HERE
Linux Foundation
PCA
Q2:
Given the metric prometheus_tsdb_lowest_timestamp_seconds, how do you know in which month the lowest timestamp of your Prometheus TSDB belongs?
○
A
format_date(prometheus_tsdb_lowest_timestamp_seconds,'%M')○
B
prometheus_tsdb_lowest_timestamp_seconds % month○
C
month(prometheus_tsdb_lowest_timestamp_seconds)○
D
(time() - prometheus_tsdb_lowest_timestamp_seconds) / 86400
Linux Foundation
PCA
Q3:
Which of the following signals belongs to symptom-based alerting?
○
A
API latency○
B
Disk space○
C
Database availability○
D
CPU usage
Linux Foundation
PCA
Q4:
What is the difference between client libraries and exporters?
○
A
Exporters are written in Go. Client libraries are written in many languages.○
B
Exporters expose metrics for scraping. Client libraries push metrics via Remote Write.○
C
Exporters run next to the services to monitor, and use client libraries internally.○
D
Exporters and client libraries mean the same thing.
Linux Foundation
PCA
Q5:
What is a rule group?
○
A
It is a set of rules that are executed sequentially.○
B
It is the set (the group) of all the rules in a file.○
C
It is a set of rules, split into groups by type.○
D
It is a set of rules that are grouped by labels.