10 2021 档案

摘要:![](https://img2020.cnblogs.com/blog/1457949/202110/1457949-20211007173402149-405737120.png) 阅读全文

posted @ 2021-10-07 17:34 ahfuzhang 阅读(130) 评论(0) 推荐(0)

摘要:2021-10-21补充: 我通过修改源码来让prometheus支持remote-write,纯属多此一举: --enable-feature=remote-write-receiver这个命令行参数可以开启remote-write能力,不过写入路径是:/api/v1/write 不过,我仍然保留 阅读全文

posted @ 2021-10-03 19:43 ahfuzhang 阅读(4223) 评论(0) 推荐(1)

摘要:之前有这样的代码:从http收数据后,进行snappy解码: dst := make([]byte, 0, len(httpRequestData)*5) dst, err = snappy.Decode(dst, httpRequestData) 我想,通过sync.Pool,是不是可以优化这里的 阅读全文

posted @ 2021-10-03 19:07 ahfuzhang 阅读(236) 评论(0) 推荐(0)

摘要:阅读官网文档后的笔记:https://thanos.io/tip/components/rule.md/ 感受 官网第一个话就强调风险,看来坑很多,能不用尽量不用 recording rule & alerting rule配置在prometheus上看来才是标准做法 阅读全文

posted @ 2021-10-02 11:17 ahfuzhang 阅读(474) 评论(0) 推荐(0)