性能测试框架搭建:cAdvisor+grafana+Prometheus监控docker容器

1,安装grafana:https://www.cnblogs.com/chenchengzi/p/16689475.html

2,安装Prometheus:https://www.cnblogs.com/chenchengzi/p/16689466.html

 3,安装cAdvisor:https://www.cnblogs.com/chenchengzi/p/16693294.html

一、Prometheus 配置 cAdvisor

修改 prometheus.yaml,添加 job_name

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: 'cadvisor'
    static_configs:
    - targets: ['10.11.97.187:8081']

  

 

 

二、grafana配置docker容器模板

 

 

 

 

 

posted @ 2022-09-14 15:42  陈橙橙橙子  阅读(131)  评论(0编辑  收藏  举报