# global:常规的全局配置
global:
scrape_interval: 15s # 每15s采集一次数据
evaluation_interval: 15s # 每15s做一次警告检测
scrape_configs: # 指定prometheus监控的目标
- job_name: prometheus # 定义job名称
static_configs:
- targets: ['localhost:9090'] # 定义监控节点
labels:
instance: prometheus
- job_name: locust
metrics_path: '/export/prometheus' # 源服务器路由
static_configs:
- targets: ['192.168.10.206:8089']
labels:
instance: locust