I have a prometheus job like this:
- job_name: blackbox-http metrics_path: /probe params: module: [http_2xx] static_configs: - targets: - http://prometheus.io - https://prometheus.io - http://example.com:8080 relabel_configs: - source_labels: [__address__] target_label: __param_target - source_labels: [__param_target] target_label: instance - target_label: __address__ replacement: localhost:9115
Now my question is can I use regex in targets
of static_conifgs
part?for example something like this:
- job_name: blackbox-http metrics_path: /probe params: module: [http_2xx] static_configs: - targets: - http[s]?://prometheus.io - http://example.com:8080/*? relabel_configs: - source_labels: [__address__] target_label: __param_target - source_labels: [__param_target] target_label: instance - target_label: __address__ replacement: localhost:9115