promtheus rate irate sum

admin | prometheus | 2017-12-22
如果我们以时间窗口来作为筛选纬度计算各个 pool 读IO的真实速率,可以用以下语句查询 irate(ceph_pool_read_total{pool=~"vms"}[1m]) 这里的 irate() 为 promethues 的查询函数.与之对应的是rate(). 这两个函数在 promethues 中经常用来计算增量或者速率,在使用时需要指定时间范围如[1m] irate(): 计算的是给定时间窗口内的每秒瞬时增加速率. rate():... [阅读全文]
ė 6没有评论 0

Prometheus group_wait — group_interval —resolve_timeout

admin | prometheus | 2017-12-22
原文出处:https://pracucci.com/prometheus-understanding-the-delays-on-alerting.html Prometheus is a great monitoring and alerting system. At Spreaker (self promotion – we’re hiring!) we’re slowly migrating to Prometheus, and thus a correct understanding in how it works is very important. Today, me and my colleague Rocco... [阅读全文]
ė 6没有评论 0

prometheus HISTOGRAMS AND SUMMARIES

admin | prometheus | 2017-12-19
代码理解HISTOGRAMS 概念 # coding: utf-8 from prometheus_client import start_http_server from prometheus_client import Counter,Summary,Histogram from threading import Thread import random from SocketServer import ThreadingMixIn from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler # c = Counter('api_count', 'Descr... [阅读全文]
ė 6没有评论 0

promethus 报警规则

admin | prometheus | 2017-11-11
ALERT InstanceStatus IF up{job="aws-ec2"} == 0 FOR 10s LABELS { severity = "page" } ANNOTATIONS { description = "服务器 {{ $labels.instance }}  已当机超过 20s" } ALERT InstanceHighCpu IF (100 – (avg(irate(node_cpu{job=”aws-ec2″,mode=”idle”}[5m])) BY (instance) *... [阅读全文]
ė 6没有评论 0

prometheus webhook

admin | prometheus | 2017-11-09
https://github.com/prometheus-zh/prometheus-webhook 由于prometheus不支持国内短信提供商,并且配置报警给谁的规则比较麻烦 因此写了一个webhook小程序 我这里卖新疆阿克苏冰糖心苹果 有兴趣加微信 [阅读全文]

如何在代码中集成prometheus client例子

admin | prometheus | 2017-11-07
https://github.com/prometheus-zh/prometheus-py-client/blob/master/prometheus_cls.py 官方示例:https://github.com/prometheus/client_python HTTP Metrics are usually exposed over HTTP, to be read by the Prometheus server. The easiest way to do this is via start_http_server, which will start a HTTP server in a daemon thread on th... [阅读全文]

mesos 下的docker中的业务 如何利用prometheus监控

admin | prometheus | 2017-11-04
这篇文档 我打算好好写,为了卖我老家的新疆阿克苏冰糖心苹果。 我们现在的运维体系使用的是mesos+marathon管理docker,如何利用mesos+marathon部署docker以及结合jenkins做CICD的文章,来 看过来”google搜索 mesos marathon jenkins”….. 如何监控docker自己本身,也忽略。方法太多了,现在工具一把一把的,我用的是cadvisor 。我们重... [阅读全文]
Ɣ回顶部