Closed EduardoVasNeira closed 2 months ago
I did that in internet-monitoring, which is the predecessor to internet-pi.
You have to install the docker stuff manually, then the internet-monitoring docker compose files. There is a directory in the code of internet-pi.
Edit the docker-compose.yml:
version: "3.1"
volumes: prometheus_data: {} grafana_data: {}
networks: front-tier: back-tier:
services: prometheus: image: prom/prometheus:v2.25.2 restart: always volumes:
./prometheus/:/etc/prometheus/
prometheus_data:/prometheus command:
'--config.file=/etc/prometheus/prometheus.yml'
'--storage.tsdb.path=/prometheus'
'--web.console.libraries=/usr/share/prometheus/console_libraries'
'--web.console.templates=/usr/share/prometheus/consoles' ports:
9090:9090 links:
ping:ping
speedtest:speedtest networks:
back-tier
grafana: image: grafana/grafana restart: always volumes:
grafana_data:/var/lib/grafana
./grafana/provisioning/:/etc/grafana/provisioning/ depends_on:
prometheus ports:
3030:3000 env_file:
./grafana/config.monitoring networks:
back-tier
front-tier
ping: tty: true stdin_open: true expose:
9115 ports:
9115:9115 image: prom/blackbox-exporter restart: always volumes:
./blackbox/config:/config command:
'--config.file=/config/blackbox.yml' networks:
back-tier
speedtest: tty: true stdin_open: true expose:
9798 ports:
9798:9798
server-id=12345
image: miguelndecarvalho/speedtest-exporter restart: always networks:
back-tier
nodeexp: privileged: true image: prom/node-exporter volumes:
/proc:/host/proc:ro
/sys:/host/sys:ro
/:/rootfs:ro ports:
9100:9100 restart: always command:
'--path.procfs=/host/proc'
'--path.sysfs=/host/sys'
--collector.filesystem.ignored-mount-points
"^/(sys|proc|dev|host|etc|rootfs/var/lib/docker/containers|rootfs/var/lib/docker/overlay2|rootfs/run/docker/netns|rootfs/var/lib/docker/aufs)($$|/)" networks:
back-tier
Add this in the Speedtest section of the .yml.
environment:
Thank you very much dear friend, I will review what you say and I will apply it. thank you so much
I went back and looked at the internet-pi install and there is an internet-monitoring directory beneath your home directory.
yourname@rpi4B:~/internet-monitoring $
There you will find...
drwxr-xr-x 3 drw drw 4096 Nov 25 2022 blackbox -rw-r--r-- 1 drw drw 2148 Sep 8 06:40 docker-compose.yml drwxr-xr-x 3 drw drw 4096 Nov 25 2022 grafana -rw-r--r-- 1 drw drw 5241 Nov 25 2022 Grafana-Org-Stats.json drwxr-xr-x 2 drw drw 4096 Aug 19 20:12 prometheus -rw-r--r-- 1 drw drw 3481 Nov 25 2022 README.md -rwxrwxrwx 1 drw drw 98 Aug 4 11:16 update.sh
In docker-compose.yml you will find a section...
speedtest: expose:
I added those last two environment lines.
update.sh is a script I created to update after the edit. It contains...
docker-compose pull docker-compose down docker-compose up -d --no-deps docker system prune --all
36684 is Ga Tech's speedtest server. Use whatever you want. Without specifying a server mine defaults to VZ Nashville. It must be under provisioned, because it fails a lot.
I hope this helps.
Dennis
VZ finally fixed the issue with their Nashville Speedtest.net server.
Problem is back.
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.
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.
I have a doubt, if it is possible to change the speedtest server to the one that does the test. be able to add the id or name of this server
Has anyone been able to do it? which line do i change?
Greetings.