From be6c2a9c3c1617638e99b713841ce86f82daec27 Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Tue, 23 Mar 2021 15:17:54 -0500 Subject: [PATCH] Use default port for speedtest-exporter. --- README.md | 4 ++-- docker-compose.yml | 4 ++-- prometheus/prometheus.yml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ba70043..0cca03d 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index 6eb9ec1..efcf5a3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: diff --git a/prometheus/prometheus.yml b/prometheus/prometheus.yml index 0f17b27..9ece048 100644 --- a/prometheus/prometheus.yml +++ b/prometheus/prometheus.yml @@ -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