EOX GitLab Instance

Skip to content
Snippets Groups Projects
Commit 60aedd7a authored by Nicolas Baudoin's avatar Nicolas Baudoin
Browse files

Merge branch 'icmp' into main

parents 3ade9b51 e924f6ab
No related branches found
No related tags found
No related merge requests found
......@@ -106,6 +106,30 @@ scrape_configs:
### blackbox exporter configuration ###
{% for exporter in blackbox_exporters %}
{% if blackbox_monitoring.icmp is defined %}
- job_name: {{exporter}}_icmp
scheme: https
tls_config:
ca_file: '/etc/ssl/prometheus_client/root.ca.crt'
cert_file: '/etc/ssl/prometheus_client/{{fqdn}}.crt'
key_file: '/etc/ssl/prometheus_client/{{fqdn}}.key'
metrics_path: /probe
params:
module: [icmp]
static_configs:
- targets:
{% for host in blackbox_monitoring.icmp %}
- {{host}}
{% endfor %}
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: {{exporter}}:9100
{% endif %}
{% if blackbox_monitoring.http_no_tls is defined %}
- job_name: {{exporter}}_http_no_tls
scheme: https
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment