Add hostname label for blackbox
Some checks failed
/ terraform (push) Successful in 37s
/ ansible (push) Failing after 1m22s

This commit is contained in:
Jake Howard 2023-10-23 21:06:43 +01:00
parent 2bd22cb2f6
commit c29dfb5ad2
Signed by: jake
GPG Key ID: 57AFB45680EDD477

View File

@ -73,6 +73,9 @@ scrape_configs:
target_label: instance
- target_label: __address__
replacement: blackbox-external:9115
- source_labels: [instance]
regex: "https?://([^/]+)/?.*"
target_label: hostname
- job_name: blackbox_icmp
scrape_interval: 10m