mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
45fcaa33e8
https://github.com/VictoriaMetrics/VictoriaMetrics/issues/2460 Signed-off-by: hagen1778 <roman@victoriametrics.com>
28 lines
No EOL
544 B
YAML
28 lines
No EOL
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 |