Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install Pihole exporter in docker - raspberry pi 4 #163

Open
mrtargaryen opened this issue Jan 29, 2023 · 3 comments
Open

Can't install Pihole exporter in docker - raspberry pi 4 #163

mrtargaryen opened this issue Jan 29, 2023 · 3 comments

Comments

@mrtargaryen
Copy link

I am trying to install PiHole Exporter on a Raspberry Pi 4 in Docker.

When I try to install the image, it just hangs and moves no further.

This is what I see, and it progresses no further (the ports, LAN Address, and password are all correct):

pi@raspberrypi4:~ $ docker run \
  -e 'PIHOLE_HOSTNAME=192.168.50.168' \
  -e 'PIHOLE_PASSWORD=XXXXXXXX-' \
  -e 'INTERVAL=30s' \
  -e 'PORT=9617' \
  -p 9617:9617 \
  ekofr/pihole-exporter:latest
time="2023-01-29T16:27:13Z" level=info msg=------------------------------------
time="2023-01-29T16:27:13Z" level=info msg="-  PI-Hole exporter configuration  -"
time="2023-01-29T16:27:13Z" level=info msg=------------------------------------
time="2023-01-29T16:27:13Z" level=info msg="PIHoleProtocol : [http]"
time="2023-01-29T16:27:13Z" level=info msg="PIHoleHostname : [192.168.50.168]"
time="2023-01-29T16:27:13Z" level=info msg="PIHolePort : [80]"
time="2023-01-29T16:27:13Z" level=info msg="Pi-Hole Authentication Method : PIHolePassword"
time="2023-01-29T16:27:13Z" level=info msg="Port : 9617"
time="2023-01-29T16:27:13Z" level=info msg="Timeout : 5s"
time="2023-01-29T16:27:13Z" level=info msg=------------------------------------
time="2023-01-29T16:27:13Z" level=info msg="New Prometheus metric registered: domains_blocked"
time="2023-01-29T16:27:13Z" level=info msg="New Prometheus metric registered: dns_queries_today"
time="2023-01-29T16:27:13Z" level=info msg="New Prometheus metric registered: ads_blocked_today"
time="2023-01-29T16:27:13Z" level=info msg="New Prometheus metric registered: ads_percentag_today"
time="2023-01-29T16:27:13Z" level=info msg="New Prometheus metric registered: unique_domains"
time="2023-01-29T16:27:13Z" level=info msg="New Prometheus metric registered: queries_forwarded"
time="2023-01-29T16:27:13Z" level=info msg="New Prometheus metric registered: queries_cached"
time="2023-01-29T16:27:13Z" level=info msg="New Prometheus metric registered: clients_ever_seen"
time="2023-01-29T16:27:13Z" level=info msg="New Prometheus metric registered: unique_clients"
time="2023-01-29T16:27:13Z" level=info msg="New Prometheus metric registered: dns_queries_all_types"
time="2023-01-29T16:27:13Z" level=info msg="New Prometheus metric registered: reply"
time="2023-01-29T16:27:13Z" level=info msg="New Prometheus metric registered: top_queries"
time="2023-01-29T16:27:13Z" level=info msg="New Prometheus metric registered: top_ads"
time="2023-01-29T16:27:13Z" level=info msg="New Prometheus metric registered: top_sources"
time="2023-01-29T16:27:13Z" level=info msg="New Prometheus metric registered: forward_destinations"
time="2023-01-29T16:27:13Z" level=info msg="New Prometheus metric registered: querytypes"
time="2023-01-29T16:27:13Z" level=info msg="New Prometheus metric registered: status"
time="2023-01-29T16:27:13Z" level=info msg="Creating client with config <Config@40000C0100 PIHoleProtocol=http, PIHoleHostname=192.168.50.168, PIHolePort=80, PIHolePassword=*****>\n"
time="2023-01-29T16:27:13Z" level=info msg="Starting HTTP server"

When I check to see if it is installed, there is nothing installed. I can't seem to install it.

pi@raspberrypi4:~ $ docker ps
CONTAINER ID   IMAGE                                     COMMAND                  CREATED       STATUS       PORTS     NAMES
b657c0589d83   quay.io/prometheus/node-exporter:latest   "/bin/node_exporter …"   2 hours ago   Up 2 hours 
```            node-exporter
@mrtargaryen
Copy link
Author

Any chance someone could point me in the right direction? I've followed the instructions exactly, I've also attempted to install using the API method with the same results.

@JzJad
Copy link

JzJad commented Feb 6, 2023

Same issue on a fresh install on amd64, even if I use ekofr/pihole-exporter:v0.3.0 existing install is working for one of my instances, but started failing to pull data from a remote pihole instance claiming its timed out within about 2 seconds. I was going to put a local exporter to fix the issue, but ran into this.

@gonzoinc
Copy link

gonzoinc commented Aug 14, 2023

I am trying to install PiHole Exporter on a Raspberry Pi 4 in Docker.

When I try to install the image, it just hangs and moves no further.

This is what I see, and it progresses no further (the ports, LAN Address, and password are all correct):

pi@raspberrypi4:~ $ docker run \
  -e 'PIHOLE_HOSTNAME=192.168.50.168' \
  -e 'PIHOLE_PASSWORD=XXXXXXXX-' \
  -e 'INTERVAL=30s' \
  -e 'PORT=9617' \
  -p 9617:9617 \
  ekofr/pihole-exporter:latest
time="2023-01-29T16:27:13Z" level=info msg=------------------------------------
time="2023-01-29T16:27:13Z" level=info msg="-  PI-Hole exporter configuration  -"
time="2023-01-29T16:27:13Z" level=info msg=------------------------------------
time="2023-01-29T16:27:13Z" level=info msg="PIHoleProtocol : [http]"
time="2023-01-29T16:27:13Z" level=info msg="PIHoleHostname : [192.168.50.168]"
time="2023-01-29T16:27:13Z" level=info msg="PIHolePort : [80]"
time="2023-01-29T16:27:13Z" level=info msg="Pi-Hole Authentication Method : PIHolePassword"
time="2023-01-29T16:27:13Z" level=info msg="Port : 9617"
time="2023-01-29T16:27:13Z" level=info msg="Timeout : 5s"
time="2023-01-29T16:27:13Z" level=info msg=------------------------------------
time="2023-01-29T16:27:13Z" level=info msg="New Prometheus metric registered: domains_blocked"
time="2023-01-29T16:27:13Z" level=info msg="New Prometheus metric registered: dns_queries_today"
time="2023-01-29T16:27:13Z" level=info msg="New Prometheus metric registered: ads_blocked_today"
time="2023-01-29T16:27:13Z" level=info msg="New Prometheus metric registered: ads_percentag_today"
time="2023-01-29T16:27:13Z" level=info msg="New Prometheus metric registered: unique_domains"
time="2023-01-29T16:27:13Z" level=info msg="New Prometheus metric registered: queries_forwarded"
time="2023-01-29T16:27:13Z" level=info msg="New Prometheus metric registered: queries_cached"
time="2023-01-29T16:27:13Z" level=info msg="New Prometheus metric registered: clients_ever_seen"
time="2023-01-29T16:27:13Z" level=info msg="New Prometheus metric registered: unique_clients"
time="2023-01-29T16:27:13Z" level=info msg="New Prometheus metric registered: dns_queries_all_types"
time="2023-01-29T16:27:13Z" level=info msg="New Prometheus metric registered: reply"
time="2023-01-29T16:27:13Z" level=info msg="New Prometheus metric registered: top_queries"
time="2023-01-29T16:27:13Z" level=info msg="New Prometheus metric registered: top_ads"
time="2023-01-29T16:27:13Z" level=info msg="New Prometheus metric registered: top_sources"
time="2023-01-29T16:27:13Z" level=info msg="New Prometheus metric registered: forward_destinations"
time="2023-01-29T16:27:13Z" level=info msg="New Prometheus metric registered: querytypes"
time="2023-01-29T16:27:13Z" level=info msg="New Prometheus metric registered: status"
time="2023-01-29T16:27:13Z" level=info msg="Creating client with config <Config@40000C0100 PIHoleProtocol=http, PIHoleHostname=192.168.50.168, PIHolePort=80, PIHolePassword=*****>\n"
time="2023-01-29T16:27:13Z" level=info msg="Starting HTTP server"

When I check to see if it is installed, there is nothing installed. I can't seem to install it.

pi@raspberrypi4:~ $ docker ps
CONTAINER ID   IMAGE                                     COMMAND                  CREATED       STATUS       PORTS     NAMES
b657c0589d83   quay.io/prometheus/node-exporter:latest   "/bin/node_exporter …"   2 hours ago   Up 2 hours 
```            node-exporter

Needs to be run with the detached flag or else it will stop when you exit.

docker run -d
-e 'PIHOLE_HOSTNAME=192.168..'
-e "PIHOLE_API_TOKEN=$API_TOKEN"
-e 'PORT=9617'
-p 9617:9617
ekofr/pihole-exporter:latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants