普罗米修斯分位数聚合失败
Prometheus quantile aggregation fails
以下查询非常适合我们:
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)
的查询在包含的每个指标中都有 quantile。
关于普罗米修斯的信息运行:
Version 1.1.1
Revision 24db241bd556fd45854dd310692ac291de7d24e1
Branch master
BuildUser root@90d3f69e2d67
BuildDate 20160907-09:42:10
GoVersion go1.6.3
这是一些过时的 PromQL 还是我们遗漏了什么?
谢谢。
首先,因此查询在数学上是无效的 - 您不能将分位数相加。如果你想聚合使用直方图和 histogram_quantile.
其次,这是最近的回归。我们即将为此推出修复程序。参见 https://github.com/prometheus/prometheus/pull/1958
以下查询非常适合我们:
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)
的查询在包含的每个指标中都有 quantile。
关于普罗米修斯的信息运行:
Version 1.1.1
Revision 24db241bd556fd45854dd310692ac291de7d24e1
Branch master
BuildUser root@90d3f69e2d67
BuildDate 20160907-09:42:10
GoVersion go1.6.3
这是一些过时的 PromQL 还是我们遗漏了什么?
谢谢。
首先,因此查询在数学上是无效的 - 您不能将分位数相加。如果你想聚合使用直方图和 histogram_quantile.
其次,这是最近的回归。我们即将为此推出修复程序。参见 https://github.com/prometheus/prometheus/pull/1958