【问题标题】:Spring Boot Metrics with Prometheus and grafana setting change for micro meterSpring Boot Metrics 与 Prometheus 和 grafana 设置更改为千分尺
【发布时间】:2018-07-01 15:08:41
【问题描述】:

您好,我正在开发一个 Spring Boot 微服务,我需要每个微服务的指标。 就像发生了多少 200 或 500 或 400 个响应。 在普罗米修斯我得到总计数,我想要基于小时或分钟的计数。我怎样才能用普罗米修斯或格拉法纳做到这一点 我想要这样的东西。过去 1 小时

/服务 200 - 50 计数

/服务 500 - 20 计数

谢谢。

【问题讨论】:

    标签: spring-boot grafana prometheus spring-boot-actuator


    【解决方案1】:

    在普罗米修斯我得到总计数,我想要基于小时或分钟的计数

    您可以尝试使用时间范围和偏移量进行普罗米修斯查询

    https://prometheus.io/docs/prometheus/latest/querying/basics/#offset-modifier

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-02-28
      • 2020-02-17
      • 1970-01-01
      • 2018-09-20
      • 2022-06-22
      • 1970-01-01
      • 1970-01-01
      • 2019-04-10
      相关资源
      最近更新 更多