Open nmoskovkin opened 7 months ago
There's some discussion around disadvantages of the push gateway in the Prom documentation. It's worth reading: https://prometheus.io/docs/practices/pushing/
The two ones that stand out here to me are:
up
metric (application-side metrics built by this lib will give you an automatic up=1|0
metric which you can use to monitor if the target/remote server is up or not; you don't get this with the push gateway) RE: "apparent advantage of the push gateway is the absence of a need for additional dependencies"
Aren't you just trading one dependency, for another? You're trading a dependency on Redis
, for a dependency on the PushGateway
instead.
Thank you for the very detailed answer. I also did some research and already changed my mind towards its better to use pull strategy.
Good day,
I would like to discuss the advantages of aggregating metrics directly on the application side. As someone who has limited experience with metric systems, the reasons for preferring this method over using a push gateway in Prometheus are not entirely clear to me. One apparent advantage of the push gateway is the absence of a need for additional dependencies like Redis. I would appreciate any clarification on this matter.