PCA (Prometheus Certified Associate) sample exam question with answer 236
Question:
In the scrape configs for a pushgateway, what is the purpose of the honor_labels: true
scrape_configs:
- job_name: pushgateway
honor_labels: true
static_configs:
- targets: ["192.168.1.168:9091"]
- Allows metrics to specify the instance and job labels instead of pulling it from scrape_configs
- Prometheus will drop all labels without this config
- Tells prometheus this is a pushgateway
- Used to save disk space when a lot of labels are used
Answer:
A - correct answer