EOX GitLab Instance

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

add 443 if port is undefined

parent deadafed
No related branches found
No related tags found
No related merge requests found
......@@ -109,6 +109,30 @@ scrape_configs:
- target_label: __address__
replacement: {{exporter}}:9100
{% endif %}
{% if blackbox_monitoring.tls is defined %}
- job_name: {{exporter}}_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: /ssl_probe
params:
module: [tcp]
static_configs:
- targets:
{% for host in blackbox_monitoring.tls %}
- {{host}}{%if host is not search(':')%}:443{% endif %}
{% 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.internal_tls is defined %}
- job_name: {{exporter}}_internal_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