From: Florian Forster Date: Sat, 14 Mar 2009 17:06:19 +0000 (+0100) Subject: bind plugin: "Trivial patch" to make `rr cache' stats work. X-Git-Tag: collectd-4.6.2~3^2~5 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=c3c16d0e36a47c92fb47fb84a2f84a9a2ba02960;p=collectd.git bind plugin: "Trivial patch" to make `rr cache' stats work. --- diff --git a/src/bind.c b/src/bind.c index b464f8de..342f6752 100644 --- a/src/bind.c +++ b/src/bind.c @@ -809,7 +809,7 @@ static int bind_xml_stats_handle_view (int version, xmlDoc *doc, /* {{{ */ list_info_ptr_t list_info = { plugin_instance, - /* type = */ "dns_qtype" + /* type = */ "dns_qtype_gauge" }; ssnprintf (plugin_instance, sizeof (plugin_instance), "%s-qtypes", @@ -846,7 +846,7 @@ static int bind_xml_stats_handle_view (int version, xmlDoc *doc, /* {{{ */ list_info_ptr_t list_info = { plugin_instance, - /* type = */ "dns_qtype" + /* type = */ "dns_qtype_gauge" }; ssnprintf (plugin_instance, sizeof (plugin_instance), "%s-cache_rr_sets", diff --git a/src/types.db b/src/types.db index 82b5b4f3..6fc8e113 100644 --- a/src/types.db +++ b/src/types.db @@ -20,20 +20,21 @@ disk_octets read:COUNTER:0:17179869183, write:COUNTER:0:17179869183 disk_ops read:COUNTER:0:4294967295, write:COUNTER:0:4294967295 disk_time read:COUNTER:0:1000000, write:COUNTER:0:1000000 dns_answer value:COUNTER:0:65535 +dns_notify value:COUNTER:0:65535 dns_octets queries:COUNTER:0:125000000, responses:COUNTER:0:125000000 dns_opcode value:COUNTER:0:65535 dns_qtype value:COUNTER:0:65535 +dns_qtype_cached value:GAUGE:0:4294967295 +dns_query value:COUNTER:0:65535 dns_question value:COUNTER:0:65535 dns_rcode value:COUNTER:0:65535 +dns_reject value:COUNTER:0:65535 dns_request value:COUNTER:0:65535 dns_resolver value:COUNTER:0:65535 +dns_response value:COUNTER:0:65535 +dns_transfer value:COUNTER:0:65535 dns_update value:COUNTER:0:65535 dns_zops value:COUNTER:0:65535 -dns_notify value:COUNTER:0:65535 -dns_transfer value:COUNTER:0:65535 -dns_query value:COUNTER:0:65535 -dns_response value:COUNTER:0:65535 -dns_reject value:COUNTER:0:65535 email_check value:GAUGE:0:U email_count value:GAUGE:0:U email_size value:GAUGE:0:U