Quantcast
Channel: Active questions tagged config - Stack Overflow
Viewing all articles
Browse latest Browse all 5054

Regex in static_config in rometheus job

$
0
0

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

Viewing all articles
Browse latest Browse all 5054

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>