geerlingguy / internet-pi

Raspberry Pi config for all things Internet.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Adding Graphana to existing pihole (running on ubuntu)

TalkBackJohnny opened this issue · comments

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

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!