Centos7 搭建prometheus+Grafana监控

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

node   scrape_configs 配置示例

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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"

  

本文作者:香菜哥哥

本文链接:https://www.cnblogs.com/yizhipanghu/p/14312404.html

版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。

posted @   香菜哥哥  阅读(200)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示
评论
收藏
关注
推荐
深色
回顶
展开