【问题标题】:Graphite Returns All values, rather than functionGraphite 返回所有值,而不是函数
【发布时间】:2019-05-28 19:33:50
【问题描述】:

假设我有以下查询:

http:/graphite.server:####/render?&target=highestCurrent(metric.path.value,3)

我遇到的问题是石墨返回指标中的所有值,而不是最后三个“最高电流”。

我无法找到端到端的示例。通常,它们仅包含:&target=...,因此我认为这只是“应该起作用”。

问题的可能根源是什么?

【问题讨论】:

    标签: graphite


    【解决方案1】:

    它应该绘制 3 个最高指标/系列的所有值。不是一个系列中的 3 个指标。

    highestCurrent(seriesList, n)

    Takes one metric or a wildcard seriesList followed by an integer N. Out of all metrics passed, draws only the N metrics with the highest value at the end of the time period specified.
    
    Example:
    
    &target=highestCurrent(server*.instance*.threads.busy,5)
    
    Draws the 5 servers with the highest busy threads.
    

    【讨论】:

    • “采用一个度量”组件意味着元素操作,并且是矛盾的,因为该函数仅对一个时间序列没有任何作用。当一个等价命名的函数可以按元素而不是按行操作时,为什么要让一个函数接受一个它什么都不做的参数?另外,无论如何,它必须在每个指标的基础上检查最高电流,因此您承诺进行不必要的计算和调用传输......
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-03-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-07-03
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多