← Back to team overview

graphite-dev team mailing list archive

[Question #231417]: Combining the results of multiple functions and graphing that combined result

 

New question #231417 on Graphite:
https://answers.launchpad.net/graphite/+question/231417

I am trying to produce a graph that contains
 1. The sum of 2 series
 2. The moving average of the data in "1"
 3. The value in "2" plus 2 times the moving standard deviation of the data in "1"

I have not been able to produce item 3. 

My two series are:
host.nfs03.disk.all.read_bytes
host.nfs03.disk.all.write_bytes

My targets for 1 and 2 are:

1. sumSeries(host.nfs03.disk.all.*_bytes)
2. movingAverage(sumSeries(host.pnfs03.disk.all.*_bytes),90)

The target for 3 would be something like
target1 + 2 * stdev( target1 )

I tried to use the sum() function:

sum( movingAverage(sumSeries(host.pnfs03.disk.all.*_bytes),90) , stdev(sumSeries(host.pnfs03.disk.all.*_bytes),90) , stdev(sumSeries(host.pnfs03.disk.all.*_bytes),90) )

but it rewrites the target giving me the impression that sum() is specifically for operating only on series metrics.


-- 
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.