Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Grafana dividing 2 series

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-Axis Mode:Series
Display:DrawMode: Bars

When i'm trying to use divideSeries I'm always got VallueError(divideSeries second argument must reference exactly 1 series)

like image 958
Denis Kovalenko Avatar asked Nov 09 '22 00:11

Denis Kovalenko


1 Answers

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.

like image 64
Joyce Babu Avatar answered Nov 15 '22 10:11

Joyce Babu