Centos7 搭建prometheus+Grafana监控

https://baijiahao.baidu.com/s?id=1676883786156871051&wfr=spider&for=pc

node   scrape_configs 配置示例

scrape_configs:
  # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
  - job_name: 'prometheus'

    # metrics_path defaults to '/metrics'
    # scheme defaults to 'http'.

    static_configs:
    - targets: ['localhost:9090']
  - job_name: "node"
    static_configs:
    - targets:
      - "192.168.100.10:20001"
      - "192.168.100.11:20001
      - "192.168.100.12:20001"

  

posted @ 2021-01-22 11:36  香菜哥哥  阅读(186)  评论(0编辑  收藏  举报