static_configs:
- targets: ["localhost:9090"]
-
- job_name: "zookeeper"
static_configs:
- targets:
regex: '([^:]+)(:[0-9]+)?'
replacement: '${1}'
-
- job_name: "kafka-broker"
static_configs:
- targets:
target_label: hostname
regex: '([^:]+)(:[0-9]+)?'
replacement: '${1}'
+
+ - job_name: "burrow-exporter"
+ static_configs:
+ - targets:
+ - "burrow_exporter:8080"
+ labels:
+ env: "dev"
+ relabel_configs:
+ - source_labels: [__address__]
+ target_label: hostname
+ regex: '([^:]+)(:[0-9]+)?'
+ replacement: '${1}'