Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Knot Plugin #2649

Closed
wants to merge 5 commits into from
Closed

Conversation

julianbrost
Copy link

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?

@julianbrost julianbrost force-pushed the knot-plugin branch 3 times, most recently from 212f686 to bc4163f Compare January 16, 2018 20:06
@julianbrost
Copy link
Author

I'm closing this as I probably won't put more work into this. If anyone wants to take over, feel free to use this as the base for your own PR.

@julianbrost julianbrost closed this Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants