Update default speedtest interval to 30m to avoid suprise huge data usage.

This commit is contained in:
Jeff Geerling 2021-04-03 23:16:06 -05:00
parent 40c4542d91
commit b96edae4b4
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ Goto [http://localhost:3030/d/o9mIe_Aik/internet-connection](http://localhost:30
To change what hosts you ping you change the `targets` section in [/prometheus/pinghosts.yaml](./prometheus/pinghosts.yaml) file.
For speedtest the only relevant configuration is how often you want the check to happen. It is at 5 minutes by default which might be too much if you have limit on downloads. This is changed by editing `scrape_interval` under `speedtest` in [/prometheus/prometheus.yml](./prometheus/prometheus.yml).
For speedtest the only relevant configuration is how often you want the check to happen. It is at 30 minutes by default which might be too much if you have limit on downloads. This is changed by editing `scrape_interval` under `speedtest` in [/prometheus/prometheus.yml](./prometheus/prometheus.yml).
Once configurations are done let's start it up. From the /prometheus project directory run the following command:

View File

@ -30,7 +30,7 @@ scrape_configs:
- job_name: 'speedtest'
metrics_path: /metrics
scrape_interval: 5m
scrape_interval: 30m
scrape_timeout: 60s # running speedtest needs time to complete
static_configs:
- targets: ['speedtest:9798']