Grafana dividing 2 series

﹥>﹥吖頭↗ 提交于 2019-12-01 22:25:18

You can use mapSeries with divideSeries to do vector matching of series in Graphite (or maybe asPercent depending on which version of graphite you are using).

An example query:

aliasByNode(reduceSeries(mapSeries(groupByNodes(parser.*.{sections,errors}.total, 'maxSeries', 1, 2), 0), 'asPercent', 1, 'sections', 'errors'), 0)

I'm not sure what aggregation function you are using so substitute maxSeries for the function you need.

Check out this blog post about using mapSeries with divideSeries for more explanation.

Here is an example from our system in the Grafana query editor:

A new function divideSeriesLists was introduced in Graphite 1.0.2 for dividing one series with another. Both the series should be of same length.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!