
监控可视化
文章平均质量分 68
监控可视化
oneslide
时代是浮躁的,心之所向,日积月累,愈久弥坚,大器晚成。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
alertmanager告警配置
alertmanager告警配置原创 2022-06-11 16:54:27 · 1089 阅读 · 0 评论 -
node-exporter PromQL语句分析
node exporter promQL简单实践原创 2022-05-31 11:39:29 · 396 阅读 · 0 评论 -
Prometheus Histogram & Summary 计算百分位点
docker-composeversion: '3.2'services: prometheus: image: prom/prometheus:latest container_name: prometheus ports: - 9090:9090 command: - --config.file=/etc/prometheus/prometheus.yml volumes: - ./prom/prometheus.yml:/etc/原创 2022-05-30 15:07:25 · 2031 阅读 · 0 评论 -
Prometheus Python Instrumentation
Prometheus Instrumentation允许编写自定义的指标数据,通过/metrics接口暴露出来,用于应用性能管理(APM)文章目录依赖下载Counter异常计数GaugeSummaryhistogram依赖下载需要下载Prometheus python的client客户端。pip install prometheus_client -i http://pypi.doubanio.com/simple/ --trusted-host pypi.doubanio.comgith.原创 2021-12-22 16:17:57 · 715 阅读 · 0 评论 -
Prometheus Operator开始
来自 Prometheus Operator Get Started实验记录下载Prometheus Operatorgit clone https://github.com/prometheus-operator/kube-prometheus.git然后使用预编译好的yaml文件。Operator使用jsonnet,一种json模板框架来渲染生成yaml文件,生成的文件在manifest文件夹# Create the namespace and CRDs, and then wait.原创 2021-12-21 18:24:42 · 667 阅读 · 0 评论 -
Prometheus--监控Consul
文章目录运行consul-exporterdocker-composedocker配置scrapegrafana运行consul-exporterdocker-composeversion: '3.9'services: consul-exporter: image: prom/consul-exporter:latest command: --consul.server=192.168.10.100:8500 ports: - "9107:9107"do原创 2021-12-18 23:22:02 · 792 阅读 · 0 评论 -
Prometheus Configuration -- relabel_configs
prometheus是多维数据,维度即label,数据及label的值。比如:{ instance="localhost:9000",app="sample",job="sample" }就是一个三维数据,label分别为instance,app,job. 每个label都有自己的值。relabel_configs 用于指定label和label值的处理规则,还可以基于label和label值过滤target。参考relabel_configstarget代表prometheus获取metri原创 2021-12-18 17:25:06 · 586 阅读 · 0 评论 -
Prometheus--Consul服务发现
本节使用Consul作为Prometheus的服务发现。文章目录集成consul1. 启动prometheus,grafana,consul2. 启动node-exporter3. prometheus.yaml添加consul服务地址4. node-exporter注册到consul请求体注册命令5. prometheus UI查看从consul获取的服务注册项6. grafana查看node-exporter指标图形1. 加入Datasource2. 导入Dashboard3. 观察dashboard原创 2021-12-18 15:03:02 · 1372 阅读 · 0 评论 -
Prometheus HTTP API --query
通过访问Prometheus HTTP API,可以获取监控数据。本文分享如何使用query.queryquery用于查询距PromQL查询时间最近的样本值。查询instant vectorrequestGET /api/v1/query?query=rate(node_network_receive_bytes_total[5m])query=rate(node_network_receive_bytes_total[5m])的数据类型为Gauge,该查询返回当前的网络包处理速率。resp原创 2021-12-15 18:08:57 · 4467 阅读 · 3 评论 -
PromQL 实践 -- Gauge & Counter
计算每秒增长量针对Counter类型数据,有rate,irate两种类型。比如rate 计算矢量的平均增长值,稳定irate 计算矢量的最后两个值,不稳定引入irate主要用于解决长尾问题,因为irate更灵敏,所以更容易发现尖峰波段。如下计算CPU-0的空闲时间,可以清晰的发现rate比irate更加平滑。rateirate...原创 2021-12-14 17:53:32 · 1664 阅读 · 0 评论