mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-15 16:30:55 +01:00
56cd2b918a
https://github.com/VictoriaMetrics/VictoriaMetrics/issues/2460 Signed-off-by: hagen1778 <roman@victoriametrics.com>
28 lines
544 B
YAML
28 lines
544 B
YAML
static_configs:
|
|
- targets:
|
|
- localhost:9093
|
|
- localhost:9095
|
|
|
|
consul_sd_configs:
|
|
- server: localhost:8500
|
|
scheme: http
|
|
services:
|
|
- alertmanager
|
|
- server: localhost:8500
|
|
services:
|
|
- consul
|
|
|
|
dns_sd_configs:
|
|
- names:
|
|
- cloudflare.com
|
|
type: 'A'
|
|
port: 9093
|
|
|
|
relabel_configs:
|
|
- source_labels: [__meta_consul_tags]
|
|
regex: .*,__scheme__=([^,]+),.*
|
|
replacement: '${1}'
|
|
target_label: __scheme__
|
|
- source_labels: [__meta_dns_name]
|
|
replacement: '${1}'
|
|
target_label: dns_name |