From: Robin Roevens <robin.roevens@disroot.org>
To: development@lists.ipfire.org
Subject: Knot resolver in CU 203: enable HTTP API
Date: Tue, 16 Jun 2026 22:15:44 +0200 [thread overview]
Message-ID: <20260616203719.1383402-1-robin.roevens@disroot.org> (raw)
Hi all
For Zabbix to be able to get knot-resolver metrics, I would like to have
the HTTP API enabled
(https://www.knot-resolver.cz/documentation/latest/manager-api.html).
Receving the same metrics is currently already possible using kresctl
however this is very slow and seems to use quite some resources
(especially on my mini appliance v1: one cpu goes to 100% for 2s) while
when using curl to get the metrics from the HTTP API, they are returned
instantly without noticable cpu usage:
Timings for kresctl:
real 0m1.979s
user 0m1.825s
sys 0m0.126s
Timings for curl using the http api:
real 0m0.051s
user 0m0.015s
sys 0m0.018s
And secondly, if I would use kresctl, I would need an additional config to
zabbix_agent and sudoers to support calling that binary, while
using the HTTP API is natively built in into the zabbix_agent and much
more performant.
I have added a patch that will enable the HTTP API in the knot resolver
config. If possible, I would like this to be applied already to CU 203
so that I can release a Zabbix template to monitor knot without the need
for additional changes to the zabbix_agent pak that would then probably
have to wait for at least CU 204.
Regards
Robin
--
Dit bericht is gescanned op virussen en andere gevaarlijke
inhoud door MailScanner en lijkt schoon te zijn.
next reply other threads:[~2026-06-16 20:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-16 20:15 Robin Roevens [this message]
2026-06-16 20:15 ` [PATCH] knot-resolver: Enable " Robin Roevens
2026-06-17 13:11 ` Knot resolver in CU 203: enable " Michael Tremer
2026-06-18 17:58 ` Robin Roevens
2026-06-18 17:58 ` [PATCH] zabbix_agentd: Add support for kresd metrics Robin Roevens
2026-06-20 12:09 ` Knot resolver in CU 203: enable HTTP API Michael Tremer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260616203719.1383402-1-robin.roevens@disroot.org \
--to=robin.roevens@disroot.org \
--cc=development@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox