sensu / sensu-prometheus-collector

Collect Prometheus metrics with Sensu!
MIT License
28 stars 18 forks source link

Allow pipe input #17

Open fxnn opened 4 years ago

fxnn commented 4 years ago

Currently, sensu-prometheus-collector only accepts Prometheus text via an URL. However, in certain situations it is helpful to be able to pre-process the raw Prometheus data (e.g. via grep).

Therefore, for the flexibility of the tool, it would be great to be able to just pipe-in the Prometheus text.

(In my situation, an errorneous tool outputs a duplicate HELP line, which the underlying parser seems to reject. Would be easy to filter that via grep.)