discourse / prometheus_exporter

A framework for collecting and aggregating prometheus metrics
MIT License
532 stars 154 forks source link

Prometheus push gateway #113

Closed konfortes closed 4 years ago

konfortes commented 4 years ago

Hey guys, Any plan to add push gateway client any time soon?

SamSaffron commented 4 years ago

No specific plans, feels a bit out of scope to me. Maybe a section in the README explaining how you would wire it?

Essentially exporter is already a push gateway of sorts, adding yet another one to the mix does not really make sense to me.

Can you explain what problem you are looking to solve?

konfortes commented 4 years ago

I might be missing something, can you explain the sentence:

exporter is already a push gateway of sorts

The problem I'm currently looking to solve is how to instrument a Kafka consumer that doesn't handle any HTTP and later on, short-lived jobs.

see: prometheus/client_ruby

SamSaffron commented 4 years ago

Sure, in general prom exporter is designed so you run a single long running process which is the process that runs the exporter.

Then various ruby processes in the container ship information to it.

Short lived jobs would ship metrics to this long lived exporter job.

See the multi process mode in the README.

konfortes commented 4 years ago

Cool! that will do thanks