public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* Knot resolver in CU 203: enable HTTP API
@ 2026-06-16 20:15 Robin Roevens
  2026-06-16 20:15 ` [PATCH] knot-resolver: Enable " Robin Roevens
  2026-06-17 13:11 ` Knot resolver in CU 203: enable " Michael Tremer
  0 siblings, 2 replies; 6+ messages in thread
From: Robin Roevens @ 2026-06-16 20:15 UTC (permalink / raw)
  To: development

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.



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-06-20 12:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-16 20:15 Knot resolver in CU 203: enable HTTP API Robin Roevens
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox