【发布时间】: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