腾讯mini项目-【指标监控服务重构】2023-08-27

今日已办

Docker Monitoring with cAdvisor, Prometheus and Grafana

prometheus.yml

global:
  scrape_interval: 10s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
  evaluation_interval: 10s # Evaluate rules every 15 seconds. The default is every 1 minute.
  # scrape_timeout is set to the global default (10s).

scrape_configs:
  - job_name: aggregated-trace-metrics
    static_configs:
      - targets: [ 'otel_collector:8889' ]
  - job_name: cadvisor
    metrics_path: /cadvisor/metrics
    static_configs:
      - targets: [ 'cadvisor:8080' ]

image-20230827195413801

可以收集到 cadvisor 监控的各个容器的指标

image-20230827200026539

image-20230827201528937

修复了 Prometheus 修改 web 前缀的问题

  • [Using external URLs and proxies with Prometheus – Robust Perception | Prometheus Monitoring Experts](https://www.robustperception.io/using-external-urls-and-proxies-with-prometheus/#:~:text=prometheus --web.external-url %3A19090%2Fprometheus%2F You should be aware that,The %2Fmetrics will be on %3A9090%2Fprometheus%2Fmetrics for example.)

  • Prometheus Routing and Routing Configuration with Nginx Reverse Proxy - SoByte

image-20230827212751266

成功使用 traefik 代理

image-20230827212836001

明日待办

  1. 完成课程报告
  2. 制作PPT
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

奥库甘道夫

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值