PADD icon indicating copy to clipboard operation
PADD copied to clipboard

Add Unbound Stats

Open bakerboy448 opened this issue 3 years ago • 5 comments

Is your feature request related to a problem? Please describe. Add unbound stats Describe the solution you'd like Implement https://gist.github.com/giuliomagnifico/e5b52263547c130bdfea483929c0689e

Describe alternatives you've considered None Additional context https://giuliomagnifico.medium.com/add-unbound-stats-to-padd-for-pi-hole-38b2ea87db2b

bakerboy448 avatar Apr 23 '21 23:04 bakerboy448

That's really nice 😃 But only valid for unbound users and not for those with dnsmasqd 😞

You really should make a pull request and put these lines in a condition that checkes if unbound is running (or unbound-control is a valid command. For example: if type -p unbound-control; then … fi).

Does anyone know if there are also some nice stats for dnsmasqd? I couldn't find anything nice other than sudo pkill -USR1 dnsmasq which doesn't work on my (dockerized) Pi-hole… 🤔

thomasmerz avatar Feb 28 '22 21:02 thomasmerz

I found accidentally this in /var/log/pihole-FTL.log - this could be used for this, couldn't it? (only "reply" (in seconds) is missing)

[2022-03-05 00:08:56.894 1084M] Imported 39729 queries from the long-term database
[2022-03-05 00:08:56.895 1084M]  -> Total DNS queries: 39729
[2022-03-05 00:08:56.895 1084M]  -> Cached DNS queries: 21259
[2022-03-05 00:08:56.895 1084M]  -> Forwarded DNS queries: 11789
[2022-03-05 00:08:56.895 1084M]  -> Blocked DNS queries: 6340
[2022-03-05 00:08:56.895 1084M]  -> Unknown DNS queries: 299
[2022-03-05 00:08:56.895 1084M]  -> Unique domains: 2779
[2022-03-05 00:08:56.895 1084M]  -> Unique clients: 17
[2022-03-05 00:08:56.895 1084M]  -> Known forward destinations: 2

thomasmerz avatar Mar 04 '22 23:03 thomasmerz

Does anyone know if there are also some nice stats for dnsmasqd?

https://docs.pi-hole.net/ftldns/telnet-api/

yubiuser avatar Jun 28 '22 21:06 yubiuser

Does this help? https://github.com/barreljan/dnsmasqstats

thomasmerz avatar Jun 30 '22 13:06 thomasmerz

Or this thread? https://discourse.pi-hole.net/t/cache-server-statistics/6092

thomasmerz avatar Jun 30 '22 13:06 thomasmerz

This issue is stale because it has been open 30 days with no activity. Please comment or update this issue or it will be closed in 5 days.

github-actions[bot] avatar Dec 12 '22 08:12 github-actions[bot]