knot_/README.md

54 lines
976 B
Markdown
Raw Permalink Normal View History

2021-12-27 18:58:12 +01:00
# knot_
2021-12-27 23:32:30 +01:00
Knot munin stats
## Install
### Knot config
Add a "mod-stats" section, e.g. :
mod-stats:
- id: custom-stats
request-protocol: on
server-operation: on
request-bytes: on
response-bytes: on
edns-presence: on
flag-presence: on
response-code: on
request-edns-option: on
response-edns-option: on
reply-nodata: on
query-type: on
query-size: on
reply-size: on
Add a "statistics" section, e.g. :
statistics:
timer: 60
file: /tmp/knot-stats.yaml
append: false
In your zone template, add a "mod-stats", e.g. :
template:
- id: signed
storage: "/var/db/knot"
semantic-checks: on
dnssec-signing: on
dnssec-policy: shared
module: mod-stats/custom-stats
### Munin config
Create "knot" in the plugin-conf.d directory and put :
[knot_*]
user root
env.stats_file_path /tmp/knot-stats.yaml
Please adapt the path of the stats file, according to knot config, statistics section.