PCA Service Discovery & Targets Flashcards
6 cards from real PCA practice questions. Tap to flip, then mark Knew It or Still Learning โ missed cards come back until you master them.
Read the first 6 PCA Service Discovery & Targets flashcards as text
What is the effect of setting `honor_labels: true` in a Prometheus scrape config?
Answer: Target-provided labels take precedence over server-side labels
When honor_labels is true, Prometheus keeps the labels exported by the target instead of overwriting them with its own labels.
Which Prometheus SD mechanism discovers targets via DNS SRV records?
Answer: dns_sd_configs
dns_sd_configs uses DNS SRV records to discover scrape targets dynamically.
What is the purpose of the `__metrics_path__` label in Prometheus service discovery?
Answer: It specifies the URL path on the target from which metrics are scraped
The __metrics_path__ label overrides the default /metrics path used when scraping a specific target.
When using Kubernetes service discovery, which role discovers individual pod endpoints rather than services?
Answer: pod
The `pod` role in kubernetes_sd_configs discovers all running pods and exposes their container ports as scrape targets.
How does Prometheus handle a target that becomes unreachable during service discovery?
Answer: It marks it as DOWN and continues attempting to scrape on the next interval
Prometheus records scrape failures as UP=0 for the target and retries on the next scrape interval without removing it.
Which relabel_configs action copies label values from one label name to another?
Answer: replace
The `replace` action can copy a source label's value into a new target_label, effectively renaming or duplicating it.