service.module.chartFromMembers(service,global_requests,'received_requests','Bind, Global Received Requests by IP version','requests/s','requests','named.requests',netdata.chartTypes.stacked,named.base_priority+1,netdata.chartAlgorithms.incremental,1,1);
if(global_queries_success_enable===true)
service.module.chartFromMembers(service,global_queries_success,'global_queries_success','Bind, Global Successful Queries','queries/s','queries','named.queries_succcess',netdata.chartTypes.line,named.base_priority+2,netdata.chartAlgorithms.incremental,1,1);
if(protocol_queries_enable===true)
service.module.chartFromMembers(service,protocol_queries,'protocols_queries','Bind, Global Queries by IP Protocol','queries/s','queries','named.protocol_queries',netdata.chartTypes.stacked,named.base_priority+3,netdata.chartAlgorithms.incremental,1,1);
if(global_queries_enable===true)
service.module.chartFromMembers(service,global_queries,'global_queries','Bind, Global Queries Analysis','queries/s','queries','named.global_queries',netdata.chartTypes.stacked,named.base_priority+4,netdata.chartAlgorithms.incremental,1,1);
if(global_updates_enable===true)
service.module.chartFromMembers(service,global_updates,'received_updates','Bind, Global Received Updates','updates/s','updates','named.global_updates',netdata.chartTypes.stacked,named.base_priority+5,netdata.chartAlgorithms.incremental,1,1);
if(global_failures_enable===true)
service.module.chartFromMembers(service,global_failures,'query_failures','Bind, Global Query Failures','failures/s','failures','named.global_failures',netdata.chartTypes.line,named.base_priority+6,netdata.chartAlgorithms.incremental,1,1);
if(global_failures_detail_enable===true)
service.module.chartFromMembers(service,global_failures_detail,'query_failures_detail','Bind, Global Query Failures Analysis','failures/s','failures','named.global_failures_detail',netdata.chartTypes.stacked,named.base_priority+7,netdata.chartAlgorithms.incremental,1,1);
if(default_enable===true)
service.module.chartFromMembers(service,r.nsstats,'nsstats','Bind, Other Global Server Statistics','operations/s','other','named.nsstats',netdata.chartTypes.line,named.base_priority+8,netdata.chartAlgorithms.incremental,1,1);
// RecursClients chart
id='named_'+service.name+'.recursive_clients';
chart=named.charts[id];
if(typeofchart==='undefined'){
chart={
id: id,// the unique id of the chart
name: '',// the unique name of the chart
title: service.name+' Bind, Current Recursive Clients',// the title of the chart
units: 'clients',// the units of the chart dimensions
family: 'clients',// the family of the chart
context: 'named.recursive_clients',// the context of the chart
type: netdata.chartTypes.line,// the type of the chart
priority: named.base_priority+1,// the priority relative to others in the same family
update_every: service.update_every,// the expected update frequency of the chart
dimensions: {
'clients': {
id: 'clients',// the unique id of the dimension
name: '',// the name of the dimension
algorithm: netdata.chartAlgorithms.absolute,// the id of the netdata algorithm
multiplier: 1,// the multiplier
divisor: 1,// the divisor
hidden: false// is hidden (boolean)
}
}
};
chart=service.chart(id,chart);
named.charts[id]=chart;
}
service.begin(chart);
service.set('clients',RecursClients);
service.end();
}
if(typeofr.opcodes!=='undefined')
service.module.chartFromMembers(service,r.opcodes,'in_opcodes','Bind, Global Incoming Requests by OpCode','requests/s','requests','named.in_opcodes',netdata.chartTypes.stacked,named.base_priority+9,netdata.chartAlgorithms.incremental,1,1);
if(typeofr.qtypes!=='undefined')
service.module.chartFromMembers(service,r.qtypes,'in_qtypes','Bind, Global Incoming Requests by Query Type','requests/s','requests','named.in_qtypes',netdata.chartTypes.stacked,named.base_priority+10,netdata.chartAlgorithms.incremental,1,1);
if(typeofr.sockstats!=='undefined')
service.module.chartFromMembers(service,r.sockstats,'in_sockstats','Bind, Global Socket Statistics','operations/s','sockets','named.in_sockstats',netdata.chartTypes.line,named.base_priority+11,netdata.chartAlgorithms.incremental,1,1);