1.背景
prometheus配置如下
(base) lcc@lcc grafana-storage$ pwd
/Users/lcc/soft/prometheus/grafana-storage
$ cat prometheus.yml
global:
scrape_interval: 60s
evaluation_interval: 60s
scrape_configs:
- job_name: prometheus
static_configs:
- targets: ['localhost:9090']
labels:
instance: prometheus
- job_name: 'pushgateway'
static_configs:
- targets: