Introduction
A monitoring and alerting system used to keep an eye on applications and infrastructure.
- Time-series database
- CPU usage
- Memory usage
- Request count
- Request latency
- Error rates
- Metrics collection system
- Query engine
- Alerting trigger
PULLS model, workflow:
Prerequisite: expose prometheus at application.yml
- Applications expose metrics at an HTTP endpoint (usually
/metrics)
- Prometheus scrapes (pulls) those metrics at regular intervals
- Data is stored in its internal time-series database
- Query the data using PromQL
- Alerts fire if conditions are met
Where Prometheus Data Is Stored
- Stored on local disk, inside:
- WAL (write-ahead log)
- TSDB blocks
// Default: /data
❌ Single-node storage