Introduction Pushing Metrics
- https://github.com/prometheus/pushgateway
- Diagram
- Sometimes metrics cannot be scraped
- Example:
- batch jobs, servers are not reachable due to NAT, firewall
- Example:
- Pushgateway is used as an intermediary service which allows you to push metrics.
- Pitfalls
- Most of the times this is a single instance so this results in a SPOF
- Prometheus's automatic instance health monitoring is not possible
- The Pushgateway never forgets the metrics unless they are deleted via the api
- Example:
- Example: