DevOps Tools Engineer (LPIC-OT 701) — Question 13
How does Prometheus gather information about monitored hosts and services?
Answer options
- A. It implements the ICMP and SNMP protocols to ping and query remote services.
- B. It opens a webhook where monitored applications have to submit various metrics.
- C. It uses HTTP to retrieve JSON encoded metrics from the monitored objects.
- D. It queries a relational database for metrics written to the database by monitored applications.
- E. It runs scripts on the Prometheus server which perform tests and return various metrics.
Correct answer: E
Explanation
The correct answer is E because Prometheus collects metrics by executing scripts on its server to perform checks and gather data. The other options describe methods that do not align with Prometheus's actual data collection techniques, such as using protocols or querying databases, which are not how Prometheus functions.