graphite-dev team mailing list archive
-
graphite-dev team
-
Mailing list archive
-
Message #03757
[Question #219778]: Problem computing weighted average
New question #219778 on Graphite:
https://answers.launchpad.net/graphite/+question/219778
I'm trying to show a graph of a weighted average of some series in Graphite.
I have a number of series of response times from various servers, together with the numbers of requests to each servers (which are the weights). I'd like to compute:
avg = ((weight1 * value1) + (weight2 * value2)) / (weight1 + weight2)
However, I'm having trouble calculating this expression. I've separated out various parts, and found that, if I put in the target:
sumSeries(multiplySeries(series1,weights1))
then Graphite just displays "No data". If I switch around the sum and multiply, then Graphite displays the data just fine.
What could I be doing wrong?
--
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.