【问题标题】:Grafana histogram displays wrong values (Datasource: Prometheus)Grafana 直方图显示错误值(数据源:Prometheus)
【发布时间】:2017-06-22 13:02:37
【问题描述】:

我使用 Grafana 4.3.2 和 Prometheus 2.0 作为数据源。 我正在尝试在 Grafana 上显示 Prometheus 直方图。我从 Prometheus 检索到的值如下:

http_request_duration_seconds_bucket{<other_labels>, le="+Inf"}     146
http_request_duration_seconds_bucket{<other_labels>, le="0.005"}    33
http_request_duration_seconds_bucket{<other_labels>, le="0.01"}     61
http_request_duration_seconds_bucket{<other_labels>, le="0.025"}    90
http_request_duration_seconds_bucket{<other_labels>, le="0.05"}     98
http_request_duration_seconds_bucket{<other_labels>, le="0.1"}      108
http_request_duration_seconds_bucket{<other_labels>, le="0.25"}     131
http_request_duration_seconds_bucket{<other_labels>, le="0.5"}      141
http_request_duration_seconds_bucket{<other_labels>, le="1"}        146
http_request_duration_seconds_bucket{<other_labels>, le="10"}       146
http_request_duration_seconds_bucket{<other_labels>, le="2.5"}      146
http_request_duration_seconds_bucket{<other_labels>, le="5"}        146

所以我希望看到的是 12 个存储桶,其值在右侧指定。但是,Grafana 显示完全不同的值,如下所示:

有什么我遗漏的,还是 Grafana 根本不支持 Prometheus 直方图(丢弃“le”标签)?

【问题讨论】:

    标签: histogram monitor metrics grafana prometheus


    【解决方案1】:

    您需要将图例格式器设置为“{{le}}”

    【讨论】:

      猜你喜欢
      • 2018-05-11
      • 2021-03-20
      • 2020-01-13
      • 2018-04-18
      • 2020-02-22
      • 2019-12-20
      • 2020-11-17
      • 1970-01-01
      • 2020-05-07
      相关资源
      最近更新 更多