EOX GitLab Instance

Skip to content
Snippets Groups Projects
Commit 7cc7f43d authored by Karl Grube's avatar Karl Grube
Browse files

added option for http_no_tls

parent 1130448b
No related branches found
No related tags found
No related merge requests found
......@@ -106,6 +106,29 @@ scrape_configs:
### blackbox exporter configuration ###
{% for exporter in blackbox_exporters %}
{% if blackbox_monitoring.http_no_tls is defined %}
- job_name: {{exporter}}_http_no_tls
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: [http_no_tls]
static_configs:
- targets:
{% for host in blackbox_monitoring.http_no_tls %}
- http://{{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_2xx is defined %}
- job_name: {{exporter}}_http_2xx
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