PCA (Prometheus Certified Associate) sample exam question with answer 129
Question:
Which of the following configuration options are available in Prometheus for defining scrape targets? (Select all that apply)
- target_groups
- scrape_configs
- job_configs
- metric_configs
Answer:
A, B - In Prometheus, scrape targets are defined in scrape_configs sections within prometheus.yml configuration file. Multiple scrape configurations can be defined, and they can be organized into target groups