Closed loganbest closed 5 years ago
What knot-resolver version are you using? (Package from which place.)
From here: deb http://download.opensuse.org/repositories/home:/CZ-NIC:/knot-resolver-latest/Debian_9.0/ /
knot-resolver/unknown,now 3.2.1-1 amd64 [installed] knot-resolver-module-http/unknown,now 3.2.1-1 all [installed,automatic] libknot8/unknown,now 2.7.5-1 amd64 [installed,automatic]
stats.get()
expects name of statistics, e.g. stats.get("answer.total")
.
Please see also other examples in docs: https://knot-resolver.readthedocs.io/en/stable/modules.html#statistics-collector
@pspacek Thanks, kresc works with that, however, the HTTP API does not and still returns 404 on all endpoints listed here: https://knot-resolver.readthedocs.io/en/stable/modules.html#id9
Oh, we need to improve docs! Drop like endpoints = {},
and it should work.
\o/ works! Thanks!
stats.get()
expects name of statistics, e.g.stats.get("answer.total")
.
stats.list()
might be what you wanted. Docs correction before we forget: https://gitlab.labs.nic.cz/knot/knot-resolver/merge_requests/760
Hi, I stood up a new kresd server from the debian packages on deb 9. All default API endpoints (stats, metrics, etc) just return a 404. Kresc returns nil. See examples below: curl
kresc
Below is my kresd.conf