eko / pihole-exporter

A Prometheus exporter for PI-Hole's Raspberry PI ad blocker
MIT License
900 stars 104 forks source link

Nothing happening on Raspberry Pi #206

Open rfpludwick opened 11 months ago

rfpludwick commented 11 months ago

Running 0.4.0 on a Raspberry Pi 2, 32bit OS, binary (not Docker), on same host as Pi-hole. I can't seem to get it to do anything at all, regardless of the command line parameters given. Sample output below:

INFO[0000] ------------------------------------
INFO[0000] -  PI-Hole exporter configuration  -
INFO[0000] ------------------------------------
INFO[0000] Go version: go1.20.1
INFO[0000] PIHoleProtocol : [http]
INFO[0000] PIHoleHostname : [127.0.0.1]
INFO[0000] PIHolePort : [80]
INFO[0000] Port : 9617
INFO[0000] Timeout : 5s
INFO[0000] ------------------------------------
INFO[0000] New Prometheus metric registered: domains_blocked
INFO[0000] New Prometheus metric registered: dns_queries_today
INFO[0000] New Prometheus metric registered: ads_blocked_today
INFO[0000] New Prometheus metric registered: ads_percentag_today
INFO[0000] New Prometheus metric registered: unique_domains
INFO[0000] New Prometheus metric registered: queries_forwarded
INFO[0000] New Prometheus metric registered: queries_cached
INFO[0000] New Prometheus metric registered: clients_ever_seen
INFO[0000] New Prometheus metric registered: unique_clients
INFO[0000] New Prometheus metric registered: dns_queries_all_types
INFO[0000] New Prometheus metric registered: reply
INFO[0000] New Prometheus metric registered: top_queries
INFO[0000] New Prometheus metric registered: top_ads
INFO[0000] New Prometheus metric registered: top_sources
INFO[0000] New Prometheus metric registered: forward_destinations
INFO[0000] New Prometheus metric registered: querytypes
INFO[0000] New Prometheus metric registered: status
INFO[0000] Creating client with config <Config@240E628 PIHoleProtocol=http, PIHoleHostname=127.0.0.1, PIHolePort=80>
INFO[0000] Starting HTTP server

It just stops there. No crash, no more log output. Again, it doesn't seem to matter what CLI params I provide - this is the same behavior every single time.

AmadeusGraves commented 11 months ago

This also, happens to me.

Junkbite commented 9 months ago

anyone got any updates to this?

MuellerKlaus commented 8 months ago

What do you expect to happen?

The web server is started and you can use curl to check the provided data: 'curl http://ip:9617/metrics'

Prometheus scrape (pull) information frequently from the provided web endpoint.