prometheus-community / bind_exporter

Prometheus exporter for BIND

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for JSON statistics-channels

SuperQ opened this issue · comments

Bind now supports stats over JSON.

I'm already fairly familiar with the JSON stats in BIND, as I implemented support for it in Telegraf's BIND plugin. However, looking at the code of bind_exporter, I see that there are a few places where it is somewhat tightly coupled to XML unmarshalling, which would require a bit of refactoring to allow the addition of JSON support without too much duplicated code.