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

news/2024/5/18 22:21:50 标签: go, prometheus, clickhouse

今日已办

Docker Monitoring with cAdvisor, Prometheus and Grafana

  • Docker Monitoring with cAdvisor, Prometheus and Grafana | by Mertcan Simsek | Medium
  • Monitoring Docker container metrics using cAdvisor | Prometheus

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

  • cadvisor/docs/api.md at master · google/cadvisor (github.com)

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

http://www.niftyadmin.cn/n/5050735.html

相关文章

PyQt5可视化窗口【计算器】

import sys from PyQt5.QtWidgets import QApplication, QTextEdit, QWidget, QPushButton, QVBoxLayout, QHBoxLayout, QGroupBox, QRadioButton, QLineEdit,QGridLayout from PyQt5.QtCore import QPoint class MyWindow(QWidget):方法init_text窗口函数(addWi…

Disruptor:无锁队列设计的背后原理

简介 在高并发场景下,队列的速度和效率是关键。而Disruptor,一种高性能的并发队列,通过独特的设计,解决了传统队列在处理高并发时可能遇到的性能瓶颈。本文将深入分析Disruptor如何通过环形数组结构、元素位置定位以及无锁设计&a…

Cron表达式_用于定时调度任务

一、Cron表达式简介 Cron表达式是一个用于设置计划任务的字符串,该字符串以5或6个空格分隔,分为6或7个域,每一个域代表任务在相应时间、日期或时间间隔执行的规则【Cron表达式最初是在类Unix操作中系统中使用的,但现在已经广泛应用…

CountDownLatch 和 CyclicBarrier 用法以及区别

在使用多线程执行任务时,通常需要在主线程进行阻塞等待,直到所有线程执行完毕,主线程才能继续向下执行,主要有以下几种可选方式 1. 调用 main 线程的 sleep 方法 一般用于预估线程的执行时间,在主线程内执行线程sleep…

01-Scala环境部署

Scala简介 Scala即Scalable Language单词的缩写,表示可伸缩语言的意思。 Scala语言是基于Java开发的,所以其编译后的文件也是字节码文件,并可以运行在JVM中 Scala与Java的关系 ​ Martin Odersky是狂热的编译器爱好者,长时间的…

【C++】构造函数和析构函数第一部分(构造函数和析构函数的作用)--- 2023.9.25

目录 前言初始化和清理的概念构造函数和析构函数的作用构造函数的作用析构函数的作用 使用构造函数和析构函数的注意事项默认的构造函数和析构函数结束语 前言 在使用c语言开发的项目场景中,我们往往会遇到申请空间的需求,同时也肯定遇到过程序运行一段…

线程数过多会造成什么异常?

线程过多可能会导致栈溢出和堆异常,这是因为每个线程都会占用一定的栈空间和堆空间: 栈溢出(StackOverflowError): 每个线程都有自己的调用栈(stack),栈用来保存方法调用的信息和局部…

SpringCloud 学习(一)简介和环境搭建

本系列文章为【狂神说 Java 】视频的课堂笔记,若有需要可配套视频学习。 1. 简介 1.1 SpringCloud SpringCloud 基于 SpringBoot 提供了一套微服务解决方案,包括服务注册与发现,配置中心,全链路监控,服务网关&#x…