statschannel.h File Reference

The statistics channels built-in the name server. More...

#include <isccc/types.h>
#include <isccfg/aclconf.h>
#include <named/types.h>

Go to the source code of this file.

Defines

#define NAMED_STATSCHANNEL_H   1
#define NS_STATSCHANNEL_HTTPPORT   80

Functions

isc_result_t ns_statschannels_configure (ns_server_t *server, const cfg_obj_t *config, cfg_aclconfctx_t *aclconfctx)
 [Re]configure the statistics channels.
void ns_statschannels_shutdown (ns_server_t *server)
 Initiate shutdown of all the statistics channel listeners.
isc_result_t ns_stats_dump (ns_server_t *server, FILE *fp)
 Dump statistics counters managed by the server to the file fp.


Detailed Description

The statistics channels built-in the name server.

Definition in file statschannel.h.


Define Documentation

#define NAMED_STATSCHANNEL_H   1

Definition at line 20 of file statschannel.h.

#define NS_STATSCHANNEL_HTTPPORT   80

Definition at line 33 of file statschannel.h.

Referenced by ns_statschannels_configure().


Function Documentation

isc_result_t ns_statschannels_configure ( ns_server_t server,
const cfg_obj_t config,
cfg_aclconfctx_t aclconfctx 
)

[Re]configure the statistics channels.

If it is no longer there but was previously configured, destroy it here.

If the IP address or port has changed, destroy the old server and create a new one.

Definition at line 2337 of file statschannel.c.

References add_listener(), cfg_list_first(), cfg_list_next(), cfg_listelt_value(), cfg_map_get(), cfg_obj_assockaddr(), cfg_obj_log(), cfg_tuple_get(), init_desc(), ISC_LIST_APPEND, ISC_LIST_APPENDLIST, ISC_LIST_HEAD, ISC_LIST_INIT, ISC_LIST_NEXT, ISC_LIST_UNLINK, ISC_LOG_DEBUG, ISC_LOG_WARNING, isc_log_write(), isc_once_do, ISC_R_SUCCESS, isc_result_totext(), isc_sockaddr_format(), ISC_SOCKADDR_FORMATSIZE, isc_sockaddr_getport(), isc_sockaddr_setport(), NS_LOGCATEGORY_GENERAL, NS_LOGMODULE_SERVER, NS_STATSCHANNEL_HTTPPORT, once, r, RUNTIME_CHECK, shutdown_listener(), ns_server::statschannels, and update_listener().

Referenced by load_configuration().

void ns_statschannels_shutdown ( ns_server_t server  ) 

Initiate shutdown of all the statistics channel listeners.

Definition at line 2462 of file statschannel.c.

References ISC_LIST_HEAD, ISC_LIST_UNLINK, shutdown_listener(), and ns_server::statschannels.

Referenced by shutdown_server().

isc_result_t ns_stats_dump ( ns_server_t server,
FILE *  fp 
)

Dump statistics counters managed by the server to the file fp.

Definition at line 2472 of file statschannel.c.

References dns_view::adbstats, adbstats_desc, adbstats_index, stats_dumparg::arg, dns_view::cache, dns_view::cachedb, dns_adbstats_max, dns_cache_dumpstats(), dns_cache_getname(), dns_db_getrrsetstats(), dns_name_format(), DNS_NAME_FORMATSIZE, dns_nsstatscounter_max, dns_opcodestats_dump(), dns_rdatasetstats_dump(), dns_rdatatypestats_dump(), dns_resstatscounter_max, dns_view_iscacheshared(), dns_zone_first(), dns_zone_getorigin(), dns_zone_getrequeststats(), dns_zone_getview(), dns_zone_next(), dns_zonestatscounter_max, dump_counters(), init_desc(), ISC_LIST_HEAD, ISC_LIST_NEXT, isc_once_do, ISC_R_SUCCESS, isc_sockstatscounter_max, isc_statsformat_file, isc_stdtime_get(), dns_view::name, ns_server::nsstats, nsstats_desc, nsstats_index, once, opcodestat_dump(), ns_server::opcodestats, ns_server::rcvquerystats, rdatasetstats_dump(), rdtypestat_dump(), ns_server::resolverstats, dns_view::resquerystats, dns_view::resstats, resstats_desc, resstats_index, RUNTIME_CHECK, ns_server::sockstats, sockstats_desc, sockstats_index, stats_dumparg::type, ns_server::viewlist, ns_server::zonemgr, ns_server::zonestats, zonestats_desc, and zonestats_index.

Referenced by ns_server_dumpstats().


Generated on Tue Apr 28 17:41:07 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha