EOX GitLab Instance

Skip to content
Snippets Groups Projects
Commit db7605ad authored by Dr. Karl Grube's avatar Dr. Karl Grube
Browse files

Merge branch 'faeture/custom_http_check' into 'main'

add custom http check

See merge request !1
parents 4a7a26ef 7155840b
No related branches found
No related tags found
1 merge request!1add custom http check
......@@ -142,6 +142,31 @@ scrape_configs:
- target_label: __address__
replacement: {{exporter}}:9100
{% endif %}
{% if blackbox_monitoring.http_custom is defined %}
{% for custom in blackbox_monitoring.http_custom %}
- job_name: {{exporter}}_{{ custom.name }}_http_custom
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: [{{ custom.name }}]
static_configs:
- targets:
{% for target in custom.targets %}
- {{ target }}
{% endfor %}
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: {{exporter}}:9100
{% endfor %}
{% endif %}
{% if blackbox_monitoring.tls is defined %}
- job_name: {{exporter}}_tls
scheme: https
......@@ -218,4 +243,5 @@ scrape_configs:
{% endfor %}
{% endif %}
{% endif %}
\ No newline at end of file
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