5.02021-11-21T21:51:11ZTemplatesKnot Resolver StatisticsKnot Resolver Statistics## Description
Collects statistic values from Knot Resolver
## Overview
Knot Resolver statistics
Requirements
------------
* None
Installation
------------
* Import the template
* If needed, modify *{$KRESD\_STATS\_URL}* macro on the Host (under Inherited and host macros) to the URL of your Knot Resolver statistics service, usually *https://localhost:8453/stats* or *http://localhost:8053/stats*
Tested on Zabbix 4.0.11
Based on template from https://github.com/heximcz/kresd-stats-zabbix
## Author
Václav Nováček
TemplatesAnswerCachePredictQueryRequestWorker- answer.1msDEPENDENTkresd.stats[answer.1ms]0/minAnswerJSONPATH$.['answer.1ms']SIMPLE_CHANGEkresd.stats[stats]
- answer.10msDEPENDENTkresd.stats[answer.10ms]0/minAnswerJSONPATH$.['answer.10ms']SIMPLE_CHANGEkresd.stats[stats]
- answer.50msDEPENDENTkresd.stats[answer.50ms]0/minAnswerJSONPATH$.['answer.50ms']SIMPLE_CHANGEkresd.stats[stats]
- answer.100msDEPENDENTkresd.stats[answer.100ms]0/minAnswerJSONPATH$.['answer.100ms']SIMPLE_CHANGEkresd.stats[stats]
- answer.250msDEPENDENTkresd.stats[answer.250ms]0/minAnswerJSONPATH$.['answer.250ms']SIMPLE_CHANGEkresd.stats[stats]
- answer.500msDEPENDENTkresd.stats[answer.500ms]0/minAnswerJSONPATH$.['answer.500ms']SIMPLE_CHANGEkresd.stats[stats]
- answer.1000msDEPENDENTkresd.stats[answer.1000ms]0/minAnswerJSONPATH$.['answer.1000ms']SIMPLE_CHANGEkresd.stats[stats]
- answer.1500msDEPENDENTkresd.stats[answer.1500ms]0/minAnswerJSONPATH$.['answer.1500ms']SIMPLE_CHANGEkresd.stats[stats]
- answer.aaDEPENDENTkresd.stats[answer.aa]0/minAnswerJSONPATH$.['answer.aa']SIMPLE_CHANGEkresd.stats[stats]
- answer.adDEPENDENTkresd.stats[answer.ad]0/minAnswerJSONPATH$.['answer.ad']SIMPLE_CHANGEkresd.stats[stats]
- answer.cachedDEPENDENTkresd.stats[answer.cached]0/minAnswerJSONPATH$.['answer.cached']SIMPLE_CHANGEkresd.stats[stats]
- answer.cdDEPENDENTkresd.stats[answer.cd]0/minAnswerJSONPATH$.['answer.cd']SIMPLE_CHANGEkresd.stats[stats]
- answer.doDEPENDENTkresd.stats[answer.do]0/minAnswerJSONPATH$.['answer.do']SIMPLE_CHANGEkresd.stats[stats]
- answer.edns0DEPENDENTkresd.stats[answer.edns0]0/minAnswerJSONPATH$.['answer.edns0']SIMPLE_CHANGEkresd.stats[stats]
- answer.nodataDEPENDENTkresd.stats[answer.nodata]0/minAnswerJSONPATH$.['answer.nodata']SIMPLE_CHANGEkresd.stats[stats]
- answer.noerrorDEPENDENTkresd.stats[answer.noerror]0/minAnswerJSONPATH$.['answer.noerror']SIMPLE_CHANGEkresd.stats[stats]
- answer.nxdomainDEPENDENTkresd.stats[answer.nxdomain]0/minAnswerJSONPATH$.['answer.nxdomain']SIMPLE_CHANGEkresd.stats[stats]
- answer.raDEPENDENTkresd.stats[answer.ra]0/minAnswerJSONPATH$.['answer.ra']SIMPLE_CHANGEkresd.stats[stats]
- answer.rdDEPENDENTkresd.stats[answer.rd]0/minAnswerJSONPATH$.['answer.rd']SIMPLE_CHANGEkresd.stats[stats]
- answer.servfailDEPENDENTkresd.stats[answer.servfail]0/minAnswerJSONPATH$.['answer.servfail']SIMPLE_CHANGEkresd.stats[stats]{last(,0)}>1200Too many SERVFAIL on {HOST.NAME}DISASTER
- answer.slowDEPENDENTkresd.stats[answer.slow]0/minAnswerJSONPATH$.['answer.slow']SIMPLE_CHANGEkresd.stats[stats]
- answer.tcDEPENDENTkresd.stats[answer.tc]0/minAnswerJSONPATH$.['answer.tc']SIMPLE_CHANGEkresd.stats[stats]
- answer.totalDEPENDENTkresd.stats[answer.total]0AnswerJSONPATH$.['answer.total']kresd.stats[stats]
- cache.clearDEPENDENTkresd.stats[cache.clear]0/minCacheJSONPATH$.['cache.clear']SIMPLE_CHANGEkresd.stats[stats]
- cache.closeDEPENDENTkresd.stats[cache.close]0/minCacheJSONPATH$.['cache.close']SIMPLE_CHANGEkresd.stats[stats]
- cache.commitDEPENDENTkresd.stats[cache.commit]0/minCacheJSONPATH$.['cache.commit']SIMPLE_CHANGEkresd.stats[stats]
- cache.countDEPENDENTkresd.stats[cache.count]0/minCacheJSONPATH$.['cache.count']SIMPLE_CHANGEkresd.stats[stats]
- cache.matchDEPENDENTkresd.stats[cache.match]0/minCacheJSONPATH$.['cache.match']SIMPLE_CHANGEkresd.stats[stats]
- cache.match_missDEPENDENTkresd.stats[cache.match_miss]0/minCacheJSONPATH$.['cache.match_miss']SIMPLE_CHANGEkresd.stats[stats]
- cache.openDEPENDENTkresd.stats[cache.open]0/minCacheJSONPATH$.['cache.open']SIMPLE_CHANGEkresd.stats[stats]
- cache.readDEPENDENTkresd.stats[cache.read]0/minCacheJSONPATH$.['cache.read']SIMPLE_CHANGEkresd.stats[stats]
- cache.read_leqDEPENDENTkresd.stats[cache.read_leq]0/minCacheJSONPATH$.['cache.read_leq']SIMPLE_CHANGEkresd.stats[stats]
- cache.read_leq_missDEPENDENTkresd.stats[cache.read_leq_miss]0/minCacheJSONPATH$.['cache.read_leq_miss']SIMPLE_CHANGEkresd.stats[stats]
- cache.read_missDEPENDENTkresd.stats[cache.read_miss]0/minCacheJSONPATH$.['cache.read_miss']SIMPLE_CHANGEkresd.stats[stats]
- cache.removeDEPENDENTkresd.stats[cache.remove]0/minCacheJSONPATH$.['cache.remove']SIMPLE_CHANGEkresd.stats[stats]
- cache.remove_missDEPENDENTkresd.stats[cache.remove_miss]0/minCacheJSONPATH$.['cache.remove_miss']SIMPLE_CHANGEkresd.stats[stats]
- cache.writeDEPENDENTkresd.stats[cache.write]0/minCacheJSONPATH$.['cache.write']SIMPLE_CHANGEkresd.stats[stats]
- predict.epochDEPENDENTkresd.stats[predict.epoch]0PredictJSONPATH$.['predict.epoch']kresd.stats[stats]
- predict.learnedDEPENDENTkresd.stats[predict.learned]0PredictJSONPATH$.['predict.learned']kresd.stats[stats]
- predict.queueDEPENDENTkresd.stats[predict.queue]0PredictJSONPATH$.['predict.queue']kresd.stats[stats]
- query.dnssecDEPENDENTkresd.stats[query.dnssec]0/minQueryJSONPATH$.['query.dnssec']SIMPLE_CHANGEkresd.stats[stats]
- query.ednsDEPENDENTkresd.stats[query.edns]0/minQueryJSONPATH$.['query.edns']SIMPLE_CHANGEkresd.stats[stats]
- request.dohDEPENDENTkresd.stats[request.doh]0/minRequestJSONPATH$.['request.doh']SIMPLE_CHANGEkresd.stats[stats]
- request.dotDEPENDENTkresd.stats[request.dot]0/minRequestJSONPATH$.['request.dot']SIMPLE_CHANGEkresd.stats[stats]
- request.internalDEPENDENTkresd.stats[request.internal]0/minRequestJSONPATH$.['request.internal']SIMPLE_CHANGEkresd.stats[stats]
- request.tcpDEPENDENTkresd.stats[request.tcp]0/minRequestJSONPATH$.['request.tcp']SIMPLE_CHANGEkresd.stats[stats]
- request.totalDEPENDENTkresd.stats[request.total]0RequestJSONPATH$.['request.total']kresd.stats[stats]
- request.udpDEPENDENTkresd.stats[request.udp]0/minRequestJSONPATH$.['request.udp']SIMPLE_CHANGEkresd.stats[stats]
- statsHTTP_AGENTkresd.stats[stats]00TEXT{$KRESD_STATS_URL}
- worker.concurrentDEPENDENTkresd.stats[worker.concurrent]0WorkerJSONPATH$.['worker.concurrent']kresd.stats[stats]
- worker.cswDEPENDENTkresd.stats[worker.csw]0/minWorkerJSONPATH$.['worker.csw']SIMPLE_CHANGEkresd.stats[stats]
- worker.droppedDEPENDENTkresd.stats[worker.dropped]0/minWorkerJSONPATH$.['worker.dropped']SIMPLE_CHANGEkresd.stats[stats]
- worker.ipv4DEPENDENTkresd.stats[worker.ipv4]0WorkerJSONPATH$.['worker.ipv4']kresd.stats[stats]
- worker.ipv6DEPENDENTkresd.stats[worker.ipv6]0WorkerJSONPATH$.['worker.ipv6']kresd.stats[stats]
- worker.pagefaultsDEPENDENTkresd.stats[worker.pagefaults]0/minWorkerJSONPATH$.['worker.pagefaults']SIMPLE_CHANGEkresd.stats[stats]
- worker.queriesDEPENDENTkresd.stats[worker.queries]0/minWorkerJSONPATH$.['worker.queries']SIMPLE_CHANGEkresd.stats[stats]
- worker.rssDEPENDENTkresd.stats[worker.rss]0/minWorkerJSONPATH$.['worker.rss']SIMPLE_CHANGEkresd.stats[stats]
- worker.swapsDEPENDENTkresd.stats[worker.swaps]0/minWorkerJSONPATH$.['worker.swaps']SIMPLE_CHANGEkresd.stats[stats]
- worker.systimeDEPENDENTkresd.stats[worker.systime]0FLOATWorkerJSONPATH$.['worker.systime']SIMPLE_CHANGEkresd.stats[stats]
- worker.tcpDEPENDENTkresd.stats[worker.tcp]0/minWorkerJSONPATH$.['worker.tcp']SIMPLE_CHANGEkresd.stats[stats]
- worker.timeoutDEPENDENTkresd.stats[worker.timeout]0/minWorkerJSONPATH$.['worker.timeout']SIMPLE_CHANGEkresd.stats[stats]
- worker.tlsDEPENDENTkresd.stats[worker.tls]0/minWorkerJSONPATH$.['worker.tls']SIMPLE_CHANGEkresd.stats[stats]
- worker.udpDEPENDENTkresd.stats[worker.udp]0/minWorkerJSONPATH$.['worker.udp']SIMPLE_CHANGEkresd.stats[stats]
- worker.usertimeDEPENDENTkresd.stats[worker.usertime]0FLOATWorkerJSONPATH$.['worker.usertime']SIMPLE_CHANGEkresd.stats[stats]
{$KRESD_STATS_URL}https://localhost:8453/statsKresd AnswersFIXED1A7C11- Knot Resolver Statisticskresd.stats[answer.cached]
1F63100- Knot Resolver Statisticskresd.stats[answer.nodata]
22774A4- Knot Resolver Statisticskresd.stats[answer.noerror]
3A54F10- Knot Resolver Statisticskresd.stats[answer.nxdomain]
Kresd Answers 1-1500msFIXED1A7C11- Knot Resolver Statisticskresd.stats[answer.1ms]
1F63100- Knot Resolver Statisticskresd.stats[answer.10ms]
22774A4- Knot Resolver Statisticskresd.stats[answer.50ms]
3A54F10- Knot Resolver Statisticskresd.stats[answer.100ms]
4FC6EA3- Knot Resolver Statisticskresd.stats[answer.250ms]
56C59DC- Knot Resolver Statisticskresd.stats[answer.500ms]
6AC8C14- Knot Resolver Statisticskresd.stats[answer.1000ms]
7611F27- Knot Resolver Statisticskresd.stats[answer.1500ms]
Kresd Answer SERVFAILFIXED1A7C11- Knot Resolver Statisticskresd.stats[answer.servfail]
Kresd Answers TOTALFIXEDAA0000- Knot Resolver Statisticskresd.stats[answer.total]
Kresd PredictFIXED1A7C11- Knot Resolver Statisticskresd.stats[predict.epoch]
1F63100- Knot Resolver Statisticskresd.stats[predict.learned]
22774A4- Knot Resolver Statisticskresd.stats[predict.queue]
Kresd RequestsFIXED1A7C11- Knot Resolver Statisticskresd.stats[request.internal]
12774A4- Knot Resolver Statisticskresd.stats[request.udp]
2A54F10- Knot Resolver Statisticskresd.stats[request.tcp]
Kresd Requests TOTALFIXED388E3C- Knot Resolver Statisticskresd.stats[request.total]
Kresd Worker CPUFIXED1A7C11ALL- Knot Resolver Statisticskresd.stats[worker.systime]
12774A4ALL- Knot Resolver Statisticskresd.stats[worker.usertime]
Kresd Worker QueriesFIXED1A7C11- Knot Resolver Statisticskresd.stats[worker.dropped]
1F63100- Knot Resolver Statisticskresd.stats[worker.pagefaults]
22774A4- Knot Resolver Statisticskresd.stats[worker.queries]
3A54F10- Knot Resolver Statisticskresd.stats[worker.timeout]