Hi Einar,
thank you for the good question :)
You can monitor both global and per-zone journal usage with
kjournalprint utility (parameter -d)
https://www.knot-dns.cz/docs/3.2/singlehtml/index.html#document-man_kjourna…
The drawback is that the output form kjournalprint is intended for human
reading, not really for script parsing.
Anyway, with proper journal configuration, one should prevent any issues
with journal becoming full. It's possible to set per-zone "soft" limits
in a way that the effect of global "hard" limit never takes place.
Hitting the "soft" limit only leads to some internal cleanup, not
affecting DNS service in any way. Read more
https://www.knot-dns.cz/docs/3.2/singlehtml/index.html#journal-behaviour
Thanks,
Libor
Dne 05. 05. 23 v 11:01 Einar Bjarni Halldórsson napsal(a):
Hi,
Yesterday we got hit by the per-zone journal becoming full [1]
As a result we're looking into how we can monitor the status to warn
us if we're near the journal limits, but I can't find a way to report
the currant journal usage (global and per-zone).
Any ideas?
[1]
https://gitlab.nic.cz/knot/knot-dns/-/issues/842
--