Re:Monitoring Cloudflare's edge network with Prometheus
by bbrazil on Tuesday September 26, 2017 @03:12AM
(#15336783)
That's a short lived batch job, for which a different approach is needed - basically push is the sane option there as pull won't cut it. Prometheus has the Pushgateway for this.
The push vs pull debate is relevant for longer running daemons, not batch jobs.
What if the service spins up on demand when it's needed, does its job, and then exits. You want to track how often it starts, how long it runs, how long the job was in the queue, how much CPU/RAM/IO was consumed, etc.
With push that's all part of the cleanup code in the process. With pull it seems like you could completely miss that the process was even ever run?