sensu / sensu-prometheus-collector

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

Add arbitrary tag support via a CLI argument #9

Open portertech opened 6 years ago

portertech commented 6 years ago

As a user, I would like to add arbitrary tags to the produced (outputted) metrics.

For example, a host tag using Sensu token substitution:

Sensu 1.x

sensu-prometheus-collector -tag host=:::name:::

Sensu 2.x

sensu-prometheus-collector -tag host={{ .ID }}