Merge pull request #16 from TouchInstinct/feature/monitoring.blackbox-exporter.extra-hosts

blackbox-exporter: add extra hosts parameter
This commit is contained in:
TonCherAmi 2020-07-27 18:27:21 +03:00 committed by GitHub
commit 0a932540fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -10,6 +10,9 @@ services:
restart: unless-stopped
ports:
- "{{ blackbox_exporter__port }}:9115"
{% if blackbox_exporter is defined and blackbox_exporter.docker is defined %}
extra_hosts: {{ blackbox_exporter.docker.extra_hosts | default([]) | to_json }}
{% endif %}
logging:
driver: json-file
options: