【问题标题】:Micrometer to Prometheus conversion千分尺到普罗米修斯的转换
【发布时间】:2019-09-15 14:51:08
【问题描述】:

我有一个使用 Micrometer 的 Spring Boot 2 应用程序。

不幸的是,我需要使用Prometheus PushGateway(即推而不是拉)

所以我需要从MeterRegistry 中读取所有Meter 并将它们转换为Prometheus 对象(例如Gauge、Counter)。然后,将它们注册到CollectorRegistry 并使用PushGateway 推送它们。

有没有方便的方法来进行这种转换?

谢谢!

【问题讨论】:

    标签: prometheus micrometer


    【解决方案1】:

    您根本不需要设置手动转换。只需阅读有关 Spring Boots Actuator 中 Prometheus Pushgateway 支持的 documentation

    【讨论】:

      猜你喜欢
      • 2021-11-19
      • 2018-08-16
      • 2018-10-30
      • 1970-01-01
      • 2020-08-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-02-22
      相关资源
      最近更新 更多