4 ms·
I thought this was about monitoring all of the outgoing DNS queries. If you're interested in that, CoreDNS has a Prometheus exporter that lets you see how many
by denysvitali 3y ago
I thought this was about monitoring all of the outgoing DNS queries.
If you're interested in that, CoreDNS has a Prometheus exporter that lets you see how many requests you've made through it. You can therefore use CoreDNS as a "proxy" DNS to log all of your DNS queries.
In my case, I modified the CoreDNS code to also include the request in the exported metrics - with this you can see all of your DNS requests (over time) and see if there was something odd.
- vladvasiliu 3y ago> In my case, I modified the CoreDNS code to also include the request in the exported metrics - with this you can see all of your DNS requests (over time) and see if there was something odd. Doesn't that create an explosion of labels?
- denysvitali 3y agoThe use case here was a single machine. Of course cardinality becomes a problem on the long run - but for a couple of days worth of data it worked quite nicely. On top of that, at least in my case, I don't resolve a huge amount of new FQDNs