graphite-dev team mailing list archive
-
graphite-dev team
-
Mailing list archive
-
Message #03696
Re: [Question #218788]: Drawing a percentage in graphite
Question #218788 on Graphite changed:
https://answers.launchpad.net/graphite/+question/218788
Status: Open => Answered
Brian Lalor proposed the following answer:
On Jan 9, 2013, at 7:45 PM, Steve Freegard
<question218788@xxxxxxxxxxxxxxxxxxxxx> wrote:
> Can anyone tell me how I might achieve the following using Graphite:
>
> ((series1 - series2) / (series1 + series2)) * 100
I think you want asPercent:
http://graphite.readthedocs.org/en/0.9.10/functions.html#graphite.render.functions.asPercent
I think you could do
asPercent(diffSeries(series1, series2), sum(series1, series2))
--
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.