摘要: 背景: 需要从 kafka 消费大量的流量数据, 写入promehteus。 通过直接写, 可以减少 消费和prometheus pull的 交互。 参考文章: 1、实操见 Prometheus Remote Write in Java, 但上面是 remote reader的demo 2、Prom 阅读全文
posted @ 2022-07-22 19:05 小烽 阅读(1276) 评论(1) 推荐(0) 编辑
摘要: 背景: 需要自定义 时间戳,目前查阅,只能通过 底层的操作才支持 带 自定义的时间戳。 前提: 下载安装 prometheus,见 1、新建springboot项目 <!-- The client --> <dependency> <groupId>io.prometheus</groupId> < 阅读全文
posted @ 2022-07-22 19:03 小烽 阅读(338) 评论(0) 推荐(0) 编辑