1. # global:常规的全局配置
    2. global:
    3. scrape_interval: 15s # 每15s采集一次数据
    4. evaluation_interval: 15s # 每15s做一次警告检测
    5. scrape_configs: # 指定prometheus监控的目标
    6. - job_name: prometheus # 定义job名称
    7. static_configs:
    8. - targets: ['localhost:9090'] # 定义监控节点
    9. labels:
    10. instance: prometheus
    11. - job_name: locust
    12. metrics_path: '/export/prometheus' # 源服务器路由
    13. static_configs:
    14. - targets: ['192.168.10.206:8089']
    15. labels:
    16. instance: locust