Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request implementes a new plugin that allows collecting metrics from the Knot DNS server from its UNIX domain socket using libknot.
It's still work in progress. The logic should be done but the handling of the individual metrics is not fully done. A few values are not handled at all (see TODO comment in the source), some like reply-size also don't really make sense to periodically collect in my opinion, so they probably won't be implemented at all (Knot keeps counters for packet sizes in 256 buckets, I think it makes more sense to just plot the total number as a histogram, but not in a collectd plugin I guess).
The second open question corresponds to types. For most of the metrics, there already exist types in types.db. Unfortunately, the dns_octets type doesn't fit the request-bytes/response-bytes as it has both rx and tx values as there is no direct 1:1 mapping between requests (query, update, other) and and reponses (reply, transfer, other). For now, I've just used some other types which kind of fit, but maybe this justifies adding a new type?