【问题标题】:Grafana / graphite - maxSeries on #A and #BGrafana / 石墨 - #A 和 #B 上的 maxSeries
【发布时间】:2016-12-29 18:59:40
【问题描述】:

我在 Grafana(数据源:Graphite)中有 2 个价格指标,以两种不同的货币 EURPLN 显示 something 的价格。我想显示这两个指标中的maxSeries,但是在比较它们有意义之前,我需要将货币转换为通用货币。我将货币兑换指标用于divideSeries PLN 指标,将其转换为EUR

我的问题是我不能将maxSeries 与两个参数一起使用,例如maxSeries(#A,#C),就像您可以将#B 作为参数传递给divideSeries 一样。它根本无法正常工作。

我的指标:

#A - stats.gauges.something.EUR.price.removeAbovePercentile(5)
#B - stats.gauges.currency.EURPLN
#C - stats.gauges.something.PLN.price.divideSeries(#B)
#D - maxSeries(#A,#C)        <---- desired output

当我在通配符查询中使用maxSeries 列出多个指标时,例如:stats.gauges.*.EUR.price.maxSeries() 它工作正常。在我的示例中,我需要先进行一些转换,所以不能简单地使用通配符。

我怎样才能做到这一点?

【问题讨论】:

    标签: statistics graphite grafana statsd


    【解决方案1】:

    我使用了Toggle Edit Mode 并手动输入:maxSeries(#A,#C),但输出不正确,蓝线应该是最大值,但由于某种原因它并不总是最大值。

    我必须先从#A 中删除removeAbovePercentile(5) 函数。

    【讨论】:

      猜你喜欢
      • 2018-07-10
      • 1970-01-01
      • 2014-11-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-12-26
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多