thank you,
i tried again and nothing was appearing at /upstreams until i restarted kresd systemd
unit.
after kresd is restarted - /upstreams return a json dict with the same data as
stats.upstreams().
is there a way to get that upstreams details in prometheus format?
On Mar 31, 2021, at 10:16 PM, Tomas Krizek
<tomas.krizek(a)nic.cz> wrote:
On 31/03/2021 12.59, Roman Kuzmitskii wrote:
been trying to find info and there seem to be no
documentation about that functionality.
sources mention dedicated /upstreams endpoint
https://gitlab.nic.cz/knot/knot-resolver/-/blob/master/modules/http/prometh…
but /upstreams returns empty list.
Hi, the functionality doesn't seem to be documented, but when I tried
with your config, the /upstreams endpoint does return a JSON dictionary
with the same data as stats.upstreams().
stats.upstreams()
{
['1.1.1.1'] = {
82,
},
}
$ curl -k
https://127.0.0.1:9053/upstreams
{"1.1.1.1":[82]}
--
Tomas Krizek
PGP: 4A8B A48C 2AED 933B D495 C509 A1FB A5F7 EF8C 4869