今天看到一段代码,是用 Prometheus 的 client_go 暴露 metrics 的代码。里面不是简 […]
Continue reading…
Posts by laixintao
Prometheus alert rules 拆分成多个查询表达式
Alertmanager 发送出来的告警是一条消息,一般我们会用 annotation 来说明发生什么事了。 […]
Continue reading…
Prometheus HTTP SD 框架
Prometheus 是现在比较流行的监控系统,它的工作模式是拉的模式:要监控的目标要负责把 metris 数 […]
Continue reading…
程序 Hot reload config 的实现方式
有时候一些进程必可避免的有重启代价太大的问题。比如有一些长连接的进程,重启会断开连接,然后所有的客户端都需要重 […]
Continue reading…
Coredns 源码解析:启动流程
Coredns 的启动流程不是很好阅读,因为它本质上是一个 caddy server, 是基于 caddy 开 […]
Continue reading…