问题描述
我正在尝试将2个系列相除以获得它们的比率.例如,我将网站(a.com,b.com,c.com)标记为*(所有网站)他们每个人都有总节数和发生错误的统计信息.我想显示为条形错误/部分,其中每个站点的错误>部分到该站点的每个错误.在这里,我想得到3个酒吧.
所以:
解析器.*.sections.total
B解析器.*.errors.total
I'm trying to divide 2 series to get their ratio.For example I'm got sites (a.com, b.com, c.com) as * (All sites)Each of them has total sections count and errors occurred stats. I'm wanna to show as bars errors/sections where section > errors for each site to each erros for this site. Here I'm whant to got 3 bars.
So:
A parser.*.sections.total
B parser.*.errors.total
X轴模式:系列
显示:DrawMode:条形
X-Axis Mode:Series
Display:DrawMode: Bars
当我尝试使用divideSeries时,我总是得到 VallueError (divideSeries的第二个参数必须精确地引用1个序列)
When i'm trying to use divideSeries I'm always got VallueError(divideSeries second argument must reference exactly 1 series)
推荐答案
新功能 divideSeriesLists 在用于将一个系列划分为另一个.这两个系列的长度应相同.
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.
这篇关于Grafana划分2系列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!