Setting up multiple targets with individual labels is simple:
- job_name: 'cloudwatch'
static_configs:
- targets:
- localhost:9110
labels:
instance: eu
- targets:
- localhost:9111
labels:
instance: us
However blackbox exporter requires `metric_relabel_configs` setup and
setting `__address__` label didn't work for me:
- job_name: 'blackbox'
metrics_path: /probe
params:
module: [http_text_html] # Look for a HTTP 200 response.
static_configs:
- targets: ['example.com']
labels:
src: eu
env: dev
__address__: blackbox-eu:9449
- targets: ['example.com']
labels:
src: us
env: dev
__address__: blackbox-us:9449
So I had to set up a separate job for each blackbox instance but I'm not
sure if that's the right way to solve this. Any ideas?
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/c59afad0-243e-442f-84e8-7d0ab6dbd7cbo%40googlegroups.com.