[bind10-dev] Statistics prototype
Naoki Kambe
kambe at jprs.co.jp
Wed Sep 30 11:35:04 UTC 2009
All,
We(JPRS) are just planning to implement this prototypes.
- Stats daemon
-- It gathers counters/status from stub module via c-channel.
-- It stores counters/status into database for HTTP and SNMP
module.
- Stub module (ex. Query module)
-- It is a sample module, example for query module, which has
statistics counters.
-- It keeps incremental counters and changes of status.
-- It answers counters/status to the stats daemon.
We are planning to write the prototypes in Python.
We are now defining message format of communication between stats
daemon and stub module.
We are planning to gather following counters and status in this
prototype. We can change/add/delete from this if necessary.
- A sample from header file in BIND 8
BIND 8.4.7 bin/named/ns_defs.h:
nssRcvdR, /* sent us an answer */
nssRcvdNXD, /* sent us a negative response */
nssRcvdFwdR, /* sent us a response we had to fwd */
nssRcvdDupR, /* sent us an extra answer */
nssRcvdFail, /* sent us a SERVFAIL */
nssRcvdFErr, /* sent us a FORMERR */
nssRcvdErr, /* sent us some other error */
nssRcvdAXFR, /* sent us an AXFR */
nssRcvdLDel, /* sent us a lame delegation */
nssRcvdOpts, /* sent us some IP options */
nssSentSysQ, /* sent them a sysquery */
nssSentAns, /* sent them an answer */
nssSentFwdQ, /* fwdd a query to them */
nssSentDupQ, /* sent them a retry */
nssSendtoErr, /* error in sendto */
nssRcvdQ, /* sent us a query */
nssRcvdIQ, /* sent us an inverse query */
nssRcvdFwdQ, /* sent us a query we had to fwd */
nssRcvdDupQ, /* sent us a retry */
nssRcvdTCP, /* sent us a query using TCP */
nssSentFwdR, /* fwdd a response to them */
nssSentFail, /* sent them a SERVFAIL */
nssSentFErr, /* sent them a FORMERR */
nssSentNaAns, /* sent them a non autoritative answer */
nssSentNXD, /* sent them a negative response */
nssRcvdUQ, /* sent us an unapproved query */
nssRcvdURQ, /* sent us an unapproved recursive query */
nssRcvdUXFR, /* sent us an unapproved AXFR or IXFR */
nssRcvdUUpd, /* sent us an unapproved update */
nssLast
- A sample from header file in BIND 9
BIND 9 lib/dns/include/dns/stats.h:
/*%
* Resolver statistics counters.
*/
dns_resstatscounter_queryv4 = 0,
/*%
* Resolver statistics counters.
*/
dns_resstatscounter_queryv4 = 0,
dns_resstatscounter_queryv6 = 1,
dns_resstatscounter_responsev4 = 2,
dns_resstatscounter_responsev6 = 3,
dns_resstatscounter_nxdomain = 4,
dns_resstatscounter_servfail = 5,
dns_resstatscounter_formerr = 6,
dns_resstatscounter_othererror = 7,
dns_resstatscounter_edns0fail = 8,
dns_resstatscounter_mismatch = 9,
dns_resstatscounter_truncated = 10,
dns_resstatscounter_lame = 11,
dns_resstatscounter_retry = 12,
dns_resstatscounter_gluefetchv4 = 13,
dns_resstatscounter_gluefetchv6 = 14,
dns_resstatscounter_gluefetchv4fail = 15,
dns_resstatscounter_gluefetchv6fail = 16,
dns_resstatscounter_val = 17,
dns_resstatscounter_valsuccess = 18,
dns_resstatscounter_valnegsuccess = 19,
dns_resstatscounter_valfail = 20,
dns_resstatscounter_dispabort = 21,
dns_resstatscounter_dispsockfail = 22,
dns_resstatscounter_querytimeout = 23,
dns_resstatscounter_queryrtt0 = 24,
dns_resstatscounter_queryrtt1 = 25,
dns_resstatscounter_queryrtt2 = 26,
dns_resstatscounter_queryrtt3 = 27,
dns_resstatscounter_queryrtt4 = 28,
dns_resstatscounter_queryrtt5 = 29,
dns_resstatscounter_max = 30,
/*%
* Zone statistics counters.
*/
dns_zonestatscounter_notifyoutv4 = 0,
dns_zonestatscounter_notifyoutv6 = 1,
dns_zonestatscounter_notifyinv4 = 2,
dns_zonestatscounter_notifyinv6 = 3,
dns_zonestatscounter_notifyrej = 4,
dns_zonestatscounter_soaoutv4 = 5,
dns_zonestatscounter_soaoutv6 = 6,
dns_zonestatscounter_axfrreqv4 = 7,
dns_zonestatscounter_axfrreqv6 = 8,
dns_zonestatscounter_ixfrreqv4 = 9,
dns_zonestatscounter_ixfrreqv6 = 10,
dns_zonestatscounter_xfrsuccess = 11,
dns_zonestatscounter_xfrfail = 12,
dns_zonestatscounter_max = 13,
----
Naoki Kambe
More information about the bind10-dev
mailing list