PCA (Prometheus Certified Associate) sample exam question with answer 247
Question:
Which of the following can be used to apply metadata exposed via the various Prometheus service discovery methods as labels on scraped targets?
- meta_relabel_configs
- relabel_configs
- static_configs
- metric_relabel_configs
Answer:
B - is the correct answer
A - there is no such thing called meta_relabel_configs in Prometheus
C - static_configs are not a service discovery method and thus do not expose any metadata. Nor can they apply metadata from service discovery methods as labels
D - metric_label_configs operate on metrics, not targets