PCA (Prometheus Certified Associate) sample exam question with answer 557
Question:
Which of the following can be used to drop specific Prometheus metrics upon ingestion?
- metric_relabel_configs with action labeldrop
- relabel_configs with action drop
- metric_relabel_configs with action drop
- relabel_configs with action keep
Answer:
C - is the correct answer. More at
relabel_config and
metric_relabel_configs
A - is incorrect as action labeldrop drops labels attached to a metric, not the entire metric
B, D - is incorrect as relabel_configs apply to targets, not metrics