bind_exporter icon indicating copy to clipboard operation
bind_exporter copied to clipboard

Add support for JSON statistics-channels

Open SuperQ opened this issue 4 years ago • 2 comments

Bind now supports stats over JSON.

SuperQ avatar Jul 16 '20 17:07 SuperQ

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.

dswarbrick avatar Oct 14 '20 20:10 dswarbrick

Hi I see that ISC has an implementation using json:

https://github.com/isc-projects/stork/blob/master/backend/agent/prombind9exporter.go

albsga avatar Sep 22 '21 18:09 albsga