From cd2e4f6330195198be1e3729e800e85261a16697 Mon Sep 17 00:00:00 2001 From: martinbrose <13284268+martinbrose@users.noreply.github.com> Date: Wed, 28 Dec 2022 19:24:52 +0000 Subject: [PATCH] Added selection of speedtest with if in template --- example.config.yml | 1 + templates/docker-compose.yml.j2 | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/example.config.yml b/example.config.yml index 86ffdd71..fc3a3299 100644 --- a/example.config.yml +++ b/example.config.yml @@ -19,6 +19,7 @@ pihole_password: "change-this-password" monitoring_enable: true monitoring_grafana_admin_password: "admin" monitoring_speedtest_interval: 60m +monitoring_speedtest_provider: ookla # changeable to ookla or cloudflare monitoring_ping_interval: 5s monitoring_ping_hosts: # [URL];[HUMAN_READABLE_NAME] - http://www.google.com/;google.com diff --git a/templates/docker-compose.yml.j2 b/templates/docker-compose.yml.j2 index 831dbc87..4a03ebbe 100644 --- a/templates/docker-compose.yml.j2 +++ b/templates/docker-compose.yml.j2 @@ -97,7 +97,11 @@ services: - 9798 ports: - 9798:9798 +{% if monitoring_speedtest_provider == 'cloudflare' %} + image: redorbluepill/cloudflare-speedtest-exporter +{% else %} image: miguelndecarvalho/speedtest-exporter +{% endif %} restart: always networks: - back-tier