Whatever the question is, pushgateway is usually the wrong answer.

Pushgateway has only one legitimate use case, which is to have a "sticky" 
metric which persists after the process which generated it has terminated. 
This could be the status of the most recent execution of a cronjob, for 
instance.

It's *not* intended as a mechanism for pushing data in general into 
Prometheus.  To do that, you need to use the Remote Write protocol.

The question is, why doesn't regular scraping of the data source work for 
you, which makes you think you need the pushgateway?  If the reason is 
because of firewalls or NAT, then the easiest way to use the Remote Write 
protocol is to run a second instance of Prometheus in Agent mode, behind 
the firewall, scraping a normal exporter.

local exporter <--- Prometheus Agent --------------[remote write protocol] 
------------> Central Prometheus

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/3d6f78c3-d258-4360-8a7e-9997233477f1n%40googlegroups.com.

Reply via email to