discordianfish / nginx_exporter

Simple server that scrapes nginx stats and exports them via HTTP for Prometheus consumption
MIT License
160 stars 76 forks source link

set the labelValues to an array of one element, stage #10

Closed jforest closed 8 years ago

jforest commented 8 years ago

https://github.com/discordianfish/nginx_exporter/issues/9 explains the reason for this change.

I'm not sure how it USED to work, but, from what I read in the code, I think it had a single label, of stage, and that stage either said "accepted", "handled", or "any"

Please let me know if it is NOT how it used to work.

jforest commented 8 years ago

Ping @discordianfish

discordianfish commented 8 years ago

@jforest Sorry about the issue and thanks a lot for the fix! I should definitely add some tests here.. Hopefully I can allocate some time for that next week.