QubitProducts / exporter_exporter

A reverse proxy designed for Prometheus exporters
Apache License 2.0
345 stars 55 forks source link

return json if requested #24

Closed ldaneliukas closed 5 years ago

ldaneliukas commented 5 years ago

We are currently exposing a list of all configured exporters in HTML which is great for human consumption.

Adding the ability to retrieve the same information in JSON format when the header Accept: application/json is passed. This can be used for a variety of integrations with other systems where needed. E.g. Consuming the exporter list for each asset in a CMDB.

tcolgate commented 5 years ago

I'm fine with this, though I wont be able to get round to testing it.

tcolgate commented 5 years ago

Thanks for this, I'll add the fix for the http.Error on master directly (seems I can't merge my own suggestions here, because it's to your repo I guess)