Use default port for speedtest-exporter.

This commit is contained in:
Jeff Geerling 2021-03-23 15:17:54 -05:00
parent afb3647ba6
commit be6c2a9c3c
3 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
# A Docker Stack which Monitors your home network
> This repository is a fork from [maxandersen/internet-monitoring](https://github.com/maxandersen/internet-monitoring), tailored for use on a Raspberry Pi.
> This repository is a fork from [maxandersen/internet-monitoring](https://github.com/maxandersen/internet-monitoring), tailored for use on a Raspberry Pi. It has only been tested on a Raspberry Pi 4 running Pi OS 64-bit beta.
Here's a quick start to stand-up a Docker [Prometheus](http://prometheus.io/) stack containing Prometheus, Grafana with [blackbox-exporter](https://github.com/prometheus/blackbox_exporter) and [speedtest-exporter](https://github.com/stefanwalther/speedtest-exporter) to collect and graph home network connections and speed.
@ -51,7 +51,7 @@ http://localhost:9090/graph?g0.expr=probe_http_status_code&g0.tab=1 shows promet
http://localhost:9115 blackbox exporter endpoint. Lets you see what have failed/succeded.
http://localhost:9800/metrics speedtest exporter endpoint. Does take about 30 seconds to show its result as it runs an actual speedtest when requested.
http://localhost:9798/metrics speedtest exporter endpoint. Does take about 30 seconds to show its result as it runs an actual speedtest when requested.
## Thanks and a disclaimer

View File

@ -61,9 +61,9 @@ services:
tty: true
stdin_open: true
expose:
- 9800
- 9798
ports:
- 9800:9800
- 9798:9798
image: miguelndecarvalho/speedtest-exporter
restart: always
networks:

View File

@ -33,7 +33,7 @@ scrape_configs:
scrape_interval: 15m
scrape_timeout: 60s # running speedtest needs time to complete
static_configs:
- targets: ['speedtest:9800']
- targets: ['speedtest:9798']
- job_name: 'ping'
metrics_path: /probe