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.
More on Prometheus Architecture
Describe the Prometheus architecture.BeginnerWhat does a basic prometheus.yml look like?BeginnerWhat is the `up` metric?BeginnerWhat are `job` and `instance` labels and where do they come from?BeginnerHow is the Prometheus TSDB organized on disk?AdvancedWhat is the WAL and why does Prometheus restart slowly sometimes?Advanced