2022年4月7日

将指标push到pushgateway

摘要: 使用push 方式把数据推送到pushgateway。 # cat client.py #!/usr/bin/python3 from prometheus_client import CollectorRegistry, Gauge, push_to_gateway registry = Coll 阅读全文

posted @ 2022-04-07 16:19 MissSimple 阅读(163) 评论(0) 推荐(0) 编辑

prometheus四种metric类型

摘要: prometheus中存储的数据都是时序型,其数据模型都是如下:metric_name{label=value,…} value timestamp下文中说的数据类型只是客户端的封装 prometheus 的4种metricprometheus的客户端中提供了4种metric,对于服务端来说并没有使 阅读全文

posted @ 2022-04-07 14:49 MissSimple 阅读(628) 评论(0) 推荐(0) 编辑

SLI、SLO、SLA

摘要: SLA (service level agreement):服务等级协议 指的是整个协议,协议的内容包含了SLI,SLO以及恢复的方式和时间等等一系列所构成的协议 SLI(service level indicator):服务等级对象 指的是对象,例如:qps,响应时间,准确性等 SLO(servi 阅读全文

posted @ 2022-04-07 14:46 MissSimple 阅读(1133) 评论(0) 推荐(0) 编辑

导航