Files
configcenter/deploy/monitoring/prometheus.yml

18 lines
324 B
YAML

global:
scrape_interval: 15s
evaluation_interval: 15s
rule_files:
- /etc/prometheus/alerts.yml
scrape_configs:
- job_name: configcenter
metrics_path: /metrics
static_configs:
- targets: ["server:8080"]
- job_name: etcd
metrics_path: /metrics
static_configs:
- targets: ["etcd:2379"]