prometheus
prometheus 笔记
笔记 1. go语言创造,静态编译,无需安装太多依赖环境 2. 对于非法的路径,可以根据404返回头过滤成一类 others 3. 使用 record.rules 能够提前把数据组合好,直接访问处理后的数据,而不是实时去求表达式 4. 10分钟是个经验值,grafan 总是 能被 smoothed Counter // responseCounter Inc() 回复的总数 ,假设传入两个维度(默认还有其他维度) path 、method、status qps: sum(rate(requests_total[10m])) 按照维度分,可以保留下面grafa sum(rate(requests_total[10m])) by (endpoint, method, status) Histogram // 耗时responseLatency.