Hi there, hope y'all doing fine. I'm fairly new to prom and having a bit of trouble with all of the configs. Currently I want to use the blackbox_exporter to ping the endpoints. I just want to know if they are up and healthy or down/off. But I just can't figure out how to relabel correctly in order to get the correct url. the correct one should look like this: http://*1st_client_ip* :9115/probe?module=icmp&target=*1st_client_ip*
my prometheus.yml: # my global config global: scrape_interval: 30s # Set the scrape interval to every 15 seconds. Default is every 1 minute. evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute. scrape_timeout: 15s # scrape_timeout is set to the global default (10s). # Alertmanager configuration alerting: alertmanagers: - static_configs: - targets: - alertmanager:9093 # Load rules once and periodically evaluate them according to the global 'evaluation_interval'. rule_files: - rules.yml [...] static_configs: - job_name: 'blackbox-icmp' metrics_path: /probe params: module: [icmp] static_configs: - targets: - *1st_client_ip*:9115 - *2nd_client_ip*:9182 relabel_configs: - source_labels: [__address__] target_label: __param_target - source_labels: [__param_target] target_label: instance With this relabel_config I at least have the target and module in the probe-url. But attached at the end is some kind of modulo and I don't really know where it's coming from: http://*1st_client_ip* :9115/probe?module=icmp&target=*1st_client_ip*%3A9115 and with that all values in the icmp probe is 0. when deleting the modulo manually from url - everything works just fine. Can someone help me to get it right? Kind regards - Kolja -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/8cea7a8b-cc0d-4112-8601-41b735ead7ccn%40googlegroups.com.