PCA (Prometheus Certified Associate) sample exam question with answer 401
Question:
What does the following config do?
scrape_configs:
- job_name: "example"
metric_relabel_configs:
- source_labels: [team]
regex: (.*)
action: replace
target_label: organization
replacement: org-$1
- renames the organization label to team and the value of the label will get prepended with org
- the team label will get dropped
- renames the team label to orginization and the value of the label will get prepended with org-
- Targets with label team will get scraped, all other targets will be dropped
Answer:
C - correct answer