geerlingguy / internet-pi

Raspberry Pi config for all things Internet.
MIT License
4.15k stars 440 forks source link

Adding Graphana to existing pihole (running on ubuntu) #552

Closed TalkBackJohnny closed 2 months ago

TalkBackJohnny commented 9 months ago

I'm running pi-hole on an Ubuntu VM. Is there a way to add the internet monitoring graphana part separately?

maybe not an issue more of a request. Thanks

ansible-playbook main.yml -K BECOME password: /usr/lib/python3/dist-packages/requests/init.py:89: RequestsDependencyWarning: urllib3 (2.0.5) or chardet (3.0.4) doesn't match a supported version! warnings.warn("urllib3 ({}) or chardet ({}) doesn't match a supported "

PLAY [Configure Internet Pi.] ***

TASK [Gathering Facts] ** ok: [127.0.0.1]

TASK [Load configuration (with defaults from example file).] **** ok: [127.0.0.1] => (item=example.config.yml) ok: [127.0.0.1] => (item=config.yml)

TASK [Ensure apt cache is up to date.] ** ok: [127.0.0.1]

TASK [Ensure pacman cache is up to date] **** skipping: [127.0.0.1]

TASK [Check if Docker is already present.] ** ok: [127.0.0.1]

TASK [Download Docker install convenience script.] ** skipping: [127.0.0.1]

TASK [Run Docker install convenience script.] *** skipping: [127.0.0.1]

TASK [Ensure Docker is started.] **** ok: [127.0.0.1]

TASK [Ensure dependencies are installed (Debian).] ** ok: [127.0.0.1]

TASK [Ensure dependencies are installed (Archlinux).] *** skipping: [127.0.0.1]

TASK [Install Docker Compose using Pip.] **** ok: [127.0.0.1]

TASK [Ensure user is added to the docker group: jbrooksii] ** ok: [127.0.0.1]

TASK [Reset connection so docker group is picked up.] *** [WARNING]: Reset is not implemented for this connection

TASK [Gather package facts.] **** skipping: [127.0.0.1]

TASK [Add Buster backports apt key.] **** skipping: [127.0.0.1] => (item=04EE7237B7D453EC) skipping: [127.0.0.1] => (item=648ACFD622F3D138) skipping: [127.0.0.1] => (item=0E98404D386FA1D9) skipping: [127.0.0.1] => (item=6ED0E7B82643E131)

TASK [Add Buster backports for fixed libseccomp2.] ** skipping: [127.0.0.1]

TASK [Install >libseccomp2.4.4 to fix 32-bit OS issue.] ***** skipping: [127.0.0.1]

TASK [Synchronize internet-monitoring directory.] *** ok: [127.0.0.1]

TASK [Ensure internet-monitoring directory is not a Git repository.] **** ok: [127.0.0.1]

TASK [Copy templated internet-monitoring files into place.] ***** ok: [127.0.0.1] => (item={'src': 'docker-compose.yml.j2', 'dest': 'docker-compose.yml'}) ok: [127.0.0.1] => (item={'src': 'grafana-config.monitoring.j2', 'dest': 'grafana/config.monitoring'}) ok: [127.0.0.1] => (item={'src': 'prometheus.yml.j2', 'dest': 'prometheus/prometheus.yml'}) ok: [127.0.0.1] => (item={'src': 'prometheus-pinghosts.yaml.j2', 'dest': 'prometheus/pinghosts.yaml'})

TASK [Ensure internet-monitoring environment is running.] ***

changed: [127.0.0.1]

TASK [Create Pi-hole folder on Pi.] ***** changed: [127.0.0.1]

TASK [Copy Pi-hole docker-compose template to Pi.] ** changed: [127.0.0.1]

TASK [Ensure Pi-hole is running.] *** fatal: [127.0.0.1]: FAILED! => {"changed": false, "errors": ["ERROR: for pihole Cannot start service pihole: driver failed programming external connectivity on endpoint pihole (1685acb37a0a2eada6377cbe1ca4014c327405e99ea10c40213cb4cd5dadf4ad): Error starting userland proxy: listen tcp4 0.0.0.0:80: bind: address already in use"], "module_stderr": "Creating pihole-exporter ... \nCreating pihole ... \nHost is already in use by another container\nCreating pihole ... error\n\nERROR: for pihole Cannot start service pihole: driver failed programming external connectivity on endpoint pihole (1685acb37a0a2eada6377cbe1ca4014c327405e99ea10c40213cb4cd5dadf4ad): Error starting userland proxy: listen tcp4 0.0.0.0:80: bind: address already in use\nCreating pihole-exporter ... done\n", "module_stdout": "latest: Pulling from pihole/pihole\nDigest: sha256:8bc45afe1625487aef62859a5bf02f3d7b3429e480f4e29e4689635ab86ec312\nStatus: Downloaded newer image for pihole/pihole:latest\nlatest: Pulling from ekofr/pihole-exporter\nDigest: sha256:fd788f77b144ec0addea53ed7823f7a07cb8370e12d84fff85c28720d8fd0863\nStatus: Downloaded newer image for ekofr/pihole-exporter:latest\n", "msg": "Error starting project Encountered errors while bringing up the project."}

RUNNING HANDLER [Restart pi-hole] ***

PLAY RECAP ** 127.0.0.1 : ok=14 changed=3 unreachable=0 failed=1 skipped=8 rescued=0 ignored=0

martinbrose commented 9 months ago

Hi @TalkBackJohnny, from the README: An existing pi-hole installation can be left unaltered by disabling the setup of this project's installation in your config.yml (pihole_enable: false)

Enjoy!

github-actions[bot] commented 4 months ago

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

github-actions[bot] commented 2 months ago

This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.

butchkemper commented 4 weeks ago

I already have a working Pi-Hole configuration of two Pi Zero 2 systems with automatic backup of configuration changes. What I would like to have is a way to activate the Pi-Hole monitoring but without the Pi-Hole installation.

A suggestion for config.yml settings are: pihole_enable: false - turn off Pi-Hole monitoring and no installation. pihole_enable: true - turn on Pi-Hole monitoring. pihole_install: true - turn on Pi-Hole docker install with monitoring. pihole_install: false - skip Pi-Hole docker install, and monitor a remote Pi-Hole.

I would also like to have the ability to monitor multiple Pi-Hole configurations.

I will begin learning how InternetPi works and how to make the changes to achieve the above results. It may be a slow process but then, what is time to an old retired guy?

Butch