2

以下查询对我们很有效:

sum(http_request_duration_microseconds{role="api",service="awesome-api",environment="prod"}) by (quantile)

但现在它抱怨如下:

Error executing query: parse error at char 98: unexpected <aggr:quantile> in grouping opts, expected identifier

在包含的每个指标中运行sum(...) by (quantile)没有分位数的查询。

关于我们正在运行的普罗米修斯的信息:

Version     1.1.1
Revision    24db241bd556fd45854dd310692ac291de7d24e1
Branch      master
BuildUser   root@90d3f69e2d67
BuildDate   20160907-09:42:10
GoVersion   go1.6.3

这是一些过时的 PromQL 还是我们遗漏了什么?

谢谢。

4

1 回答 1

2

First off, thus query is invalid mathematically - you can't add up quantiles. If you want to aggregate use Histograms and histogram_quantile.

Secondly this is a recent regression. We're about to push a fix for this. See https://github.com/prometheus/prometheus/pull/1958

于 2016-09-08T12:03:27.437 回答