Hi ich777, thanks for your hard work!
I tried your guide, and setup Prometheus and Prometheus node exporter without any issues.
However, when i setup the pihole plugin, and enter my pihole ip and port 80 and api token, and click change and start, it runs for a while and stops automatically.
I get the following error:
2021/07/11 01:30:52 Starting HTTP server
2021/07/11 01:31:02 An error has occured during retrieving PI-Hole statistics Get "http://192.168.1.46:281/admin/api.php?summaryRaw&overTimeData&topItems&recentItems&getQueryTypes&getForwardDestinations&getQuerySources&jsonForceObject&auth=*****************************************": dial tcp 192.168.1.46:281: connect: connection refused
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0x811daa]
goroutine 37 [running]:
github.com/eko/pihole-exporter/internal/pihole.(*Client).getStatistics(0xc0001663f0, 0xc000042790)
/root/prometheus_pihole_exporter/pihole-exporter/internal/pihole/client.go:163 +0x2ea
github.com/eko/pihole-exporter/internal/pihole.(*Client).Scrape(0xc0001663f0)
/root/prometheus_pihole_exporter/pihole-exporter/internal/pihole/client.go:61 +0x88
created by main.initPiHoleClient
/root/prometheus_pihole_exporter/pihole-exporter/main.go:37 +0xc5
192.168.1.46 is my pihole ip and using port 80
please help, im a newbie to linux and have no idea what these is all about.
Thanks again for all your hard work.
Edit: NVM, it just worked after i tried again. Maybe i entered the wrong port by mistake.
Again, thanks for your hard work!
Edit 2: some of my dockers stoped working after enabling host access to custom networks, disabled this and they works again. any idea how to fix this?