Hi , am using balckbox exporter with icmp module — i have a target yml file with list of values in the following format ” host-90-230.xyz.abc.test.com:9890, host-90-230.xyz.abc.test.com:9890, , host-90-230.xyz.abc.test.com:9890 etc…. ” i want to remove the port number while using the target file in prometheus.yml . is there any possibleway to strip it in relabel config
metrics_path: /probe
file_sd_configs:
- files:
- '/etc/prometheus/blackbox/targets/*.yml'
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [module]
target_label: __param_module
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: 172.XX.X.XX:9115 #Actual IP of my host```