Which component is strictly required to monitor batch jobs in a Prometheus ecosystem?
Trap 1: Grafana
Grafana renders dashboards and alerts from data Prometheus already stores; it cannot collect or scrape batch-job metrics itself. The question asks what is strictly required for monitoring, meaning the component that gathers and stores time-series data. Grafana is the right choice when visualising existing Prometheus metrics, not as the collection prerequisite.
Trap 2: Alertmanager
Alertmanager only routes and deduplicates alerts; it plays no part in collecting batch job metrics. It would be correct when notifications on those metrics are required, but scraping and storing them needs only Prometheus plus Pushgateway.
Trap 3: PromQL
PromQL is Prometheus's query language, not a deployable component, so it cannot be a required piece of the monitoring pipeline. It would be correct when writing queries or alerting rules, but batch job collection needs Pushgateway and Prometheus.
- A
Grafana
Why it fails: Grafana renders dashboards and alerts from data Prometheus already stores; it cannot collect or scrape batch-job metrics itself. The question asks what is strictly required for monitoring, meaning the component that gathers and stores time-series data. Grafana is the right choice when visualising existing Prometheus metrics, not as the collection prerequisite.
- B
Alertmanager
Why it fails: Alertmanager only routes and deduplicates alerts; it plays no part in collecting batch job metrics. It would be correct when notifications on those metrics are required, but scraping and storing them needs only Prometheus plus Pushgateway.
- C
Pushgateway
Batch jobs run to completion and exit, so they cannot be scraped while running. Pushgateway is required: jobs push their final metrics to it, and Prometheus scrapes the gateway to retain those results after the job ends.
- D
PromQL
Why it fails: PromQL is Prometheus's query language, not a deployable component, so it cannot be a required piece of the monitoring pipeline. It would be correct when writing queries or alerting rules, but batch job collection needs Pushgateway and Prometheus.