2022年9月

https://github.com/amitsaha/prom-file-sd-config-generator功能比较单一,就是从url使用http GET请求获取一个资源列表,然后自动把他解析成json写进文件,需要提前配置好prometheus基于文件的自动发现功能GET返回的格式类似于<a href="http://127.0.0.1:9100/metrics/te...

本文主要是对官方手册的解读,加上了一点基于实际压测后对方案的感受https://yunlzheng.gitbook.io/prometheus-book/part-ii-prometheus-jin-jie/readmd/prometheus-local-storage存储架构prometheus 2.x版本以两小时为一个周期,每个周期落盘记录为一个block,block下面有chunk样本...

docker pull prom/node-exporternode-exporter.yamlapiVersion: apps/v1 kind: DaemonSet #daemonset会保证每个node都有这个pod metadata: name: node-exporter namespace: promtest spec: selector: matchLab...

helm是k8s的包管理工具安装https://github.com/helm/helm/releases解压(tar -zxvf helm-v3.0.0-linux-amd64.tar.gz)在解压目中找到helm程序,移动到需要的目录中(mv linux-amd64/helm /usr/local/bin/helm)入门chart的结构一般如下mychart/ Chart.yaml ...

用了几个月普罗米修斯了,回头再来补一篇博客(笑参考:https://blog.csdn.net/cp3_zyh/article/details/124019043简介谷歌出品,基于Go编写,容器时代版本的答案!特点:由指标名+键值对的标签标识的时序数据和转为监控而生的时序数据库TSDBpromQL自动发现成熟的容器化支持独立部署,无需agent,但是想要获得一些针对性的监控需要对应的expo...