...
  View open merge request
Commits (1)
......@@ -13,3 +13,6 @@ alertmanager_smtp_auth_password: ""
# Keep 3 months of timeseries data by default.
prometheus_tsdb_retention: "90d"
# Custom blackbox probes.
prometheus_custom_blackbox_probes: {}
......@@ -35,6 +35,24 @@ modules:
ca_file: /etc/ssl/certs/ca-certificates.crt
insecure_skip_verify: false
{% for custom_probe in prometheus_custom_blackbox_probes.get('http', []) %}
http_{{ custom_probe.name }}:
prober: http
timeout: 5s
http:
valid_status_codes: [200, 301, 302, 307]
method: GET
headers:
Host: "{{ custom_probe.host }}"
fail_if_ssl: false
fail_if_not_ssl: true
preferred_ip_protocol: ip4
tls_config:
server_name: "{{ custom_probe.host }}"
ca_file: /etc/ssl/certs/ca-certificates.crt
insecure_skip_verify: false
{% endfor %}
ping:
prober: icmp
timeout: 5s
......
......@@ -128,7 +128,11 @@ scrape_configs:
- job_name: "prober_https_{{ loop.index }}"
metrics_path: "/probe"
params:
module: [http_public]
module:
- http_public
{% for custom_probe in prometheus_custom_blackbox_probes.get('http', []) %}
- http_{{ custom_probe.name }}
{% endfor %}
relabel_configs:
- source_labels: [__address__]
target_label: target
......