PushGateway python example
How does it work?
General Prometheus architecture overview
Single Node Prometheus + Pushgateway
Single node is pretty straightforward.
- Use
PushGatewayClient
to create a metric. Metric is stored inRedis
. - Use
PushGatewayClient
can be pushed manually or with a command. After push metrics stored in Redis are transported to the actualPushGateway
service. Prometheus
periodically pulls in new metrics fromPushGateway
.