# 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: locustmetrics_path: '/export/prometheus' # 源服务器路由static_configs:- targets: ['192.168.10.206:8089']labels:instance: locust
