Configurable internet speed test interval

This commit is contained in:
David Stephens 2023-07-19 23:46:05 +01:00
parent 21579cc01a
commit 6c24a67d50
2 changed files with 4 additions and 1 deletions

View file

@ -49,6 +49,7 @@ stats_grafana_memory: 1g
stats_prometheus_retention_time: 365d
stats_prometheus_retention_size: 30GB
stats_collection_interval: 15s
stats_speedtest_collection_interval: 1h
# uncomment to scrape more hosts
# stats_prometheus_additional_hosts:

View file

@ -35,13 +35,15 @@ scrape_configs:
"{{ hostvars[inventory_hostname]['ansible_default_ipv4']['address'] }}:8083"
]
{% if stats_internet_speed_test_enabled %}
- job_name: "speedtest"
scrape_interval: 1h
scrape_interval: {{ stats_speedtest_collection_interval }}
scrape_timeout: 5m
static_configs:
- targets: [
"{{ hostvars[inventory_hostname]['ansible_default_ipv4']['address'] }}:{{ stats_speedtest_exporter_port }}"
]
{% endif %}
{% if stats_prometheus_additional_hosts is defined %}
- job_name: "additional_hosts"