Hello,
i have set a blackbox exporter for monitoring icmp ,etc… , on i have created a job (shown below)and targets
and for each target i set instance with its name , my question is how do i make the target instance appear eventually as instance i set on job ?
Please advice
Thanks
- job_name: 'host_alive'
metrics_path: /probe
params:
module: [icmp]
static_configs:
- targets: ["192.168.237.33"]
labels:
instance: 'SRV-BS-AD01'
- targets: ["192.168.237.34"]
labels:
instance: 'SRV-BS-AD02'
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: 127.0.0.1:9115