prometheus
cf1ybird
菜鸟一枚,没啥好简述的- -
头像pid=20179063
展开
-
prometheus配置nginx监控
经过网上一波查找到了两种比较合适的方案https://github.com/knyar/nginx-lua-prometheushttps://github.com/hnlq715/nginx-vts-exporter记录一下踩坑过程一、nginx-vts方案vts源码 https://github.com/vozlt/nginx-module-vtsexporter源码 https...原创 2019-02-03 01:33:37 · 15292 阅读 · 3 评论 -
promql中使用rate/irate等函数__name__丢失处理
先描述一下情况,我使用prometheus接入hbase监控,采用的方案是用jvm_exporter将hbase自身监控的metrics dump里的json数据转换成prometheus的数据jmx_exporter https://github.com/prometheus/jmx_exporter大佬们的教程 https://blog.godatadriven.com/hbase-p...原创 2019-02-03 02:41:47 · 4795 阅读 · 0 评论 -
python开发prometheus exporter
先描述一下需求,我要对公网IP进行监控,检查响应情况,大概实现起来就是循环执行curl IP/xxx.html ,然后查看http code和响应时间。现在我想把它弄成exporter,接到prometheus上,能够在响应时间超时,或者502时候发出告警,顺便grafana出个图prometheus_client文档地址(完全看不懂orz):https://github.com/prometh...原创 2019-02-25 23:30:05 · 9761 阅读 · 2 评论 -
Prometheus exporter 简单示例 python
Prometheus相关库文档:https://prometheus.io/docs/instrumenting/clientlibs/python示例CounterCounters go up, and reset when the process restarts.from prometheus_client import Counterc = Counter('my_failur...原创 2019-04-10 23:00:43 · 4142 阅读 · 0 评论