DevOps Tools Engineer (LPIC-OT 701) — Question 38
Which section of the Prometheus configuration defines which nodes are monitored?
Answer options
- A. scrape_config
- B. targets
- C. rules
- D. listener
- E. nodes
Correct answer: A
Explanation
The correct answer is A. The scrape_config section in Prometheus is specifically designed to define the parameters for scraping metrics from the monitored nodes. The other options do not serve this purpose; for instance, targets refer to the endpoints being scraped, while rules pertain to alerting and recording rules.