Skip to content

Commit

Permalink
Added selection of speedtest with if in template
Browse files Browse the repository at this point in the history
  • Loading branch information
martinbrose committed Dec 28, 2022
1 parent 414e672 commit cd2e4f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions example.config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions templates/docker-compose.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cd2e4f6

Please sign in to comment.