What is Prometheus agent mode?

IntermediateConceptPrometheus Architecture
Answer

prometheus --agent runs only scraping, service discovery and remote_write. There is no local querying, no rules, no alerting and no long-term TSDB, only a WAL buffer. It uses much less memory and disk.

We use it in edge clusters or many small clusters that ship everything to a central Mimir/Thanos where querying and alerting happen. Alternatives for the same role: Grafana Alloy or the OTel Collector with a Prometheus receiver.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Prometheus Architecture