looterz / grimd

:zap: fast dns proxy that can run anywhere, built to black-hole internet advertisements and malware servers
MIT License
1.38k stars 108 forks source link

Add Prometheus Metrics Support #116

Closed tpaulus closed 1 month ago

tpaulus commented 1 year ago

This change adds support for configuring a Prometheus Server to provide metrics into both the number of domains on the block list, as well as the number of blocks/allows served by the DNS Resolver.

I wasn't able to get the Perf Benchmark running, but would expect this to have little impact since the metrics emission and logging are done in background threads.