Add hostname label for blackbox
This commit is contained in:
parent
2bd22cb2f6
commit
c29dfb5ad2
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue