python-diamond / Diamond

Diamond is a python daemon that collects system metrics and publishes them to Graphite (and others). It is capable of collecting cpu, memory, network, i/o, load and disk metrics. Additionally, it features an API for implementing custom collectors for gathering metrics from almost any source.
http://diamond.readthedocs.org/
MIT License
1.74k stars 601 forks source link

support for bind v3 statistics #664

Closed albert-lacki closed 7 years ago

albert-lacki commented 7 years ago

since bind 9.10 release there was a non-compatible change in structure of reported xml with data used by our bind collector (https://www.isc.org/blogs/bind-9-10-statistics-troubleshooting-and-zone-configuration/)

with this pull request collector starting to support both old (version=2.x) and new (version=3.x) format moreover I've added new parameter (publish_zeros=True|False) which allows to decide where to publish zero-valued metrics. One may want no to pollute metrics tree with never-happened events.