[英]Nesting aggregate functions in Librato
I have 3 measures, and I want to add measure1
and measure2
and then subtract measure3
from the result. 我有3
measure2
,我想将measure2
measure1
和measure2
,然后从结果中减去measure3
。 I'm unable to get the composite metric below to work. 我无法使用下面的综合指标。 Any help would be appreciated.
任何帮助,将不胜感激。
subtract([
sum([
sum(s("measure1", "*")),
sum(s("measure2", "*")),
]),
sum(s("measure3", "*"))
])
Figured out what the issue was. 找出问题所在。 Missing the aggregate function within the series.
系列中缺少聚合函数。
subtract([
sum([
s("measure1", "*", {function:"sum"}),
s("measure2", "*", {function:"sum"})
]),
s("measure3", "*", {function:"sum"})
])
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.