By incremental counter, you mean the value only goes up? E.g. The data looks like: 2100,2130,2190,2210,2245,2275,2285.... If so, you can use the nonNegativeDerivative function to graph the hits per min: 37,60,20,35,30,10....
Then you can use the the divide function to draw the ratio per minute. If you want a different time period, you can use the summarize() function to then roll up the ratio into, for example, 15 minute time periods: &target=divide(summarize(nonNegativeDerivative(foo.bar.calls),15),summarize(nonNegativeDerivative(foo.bar.newSessions),15)) That may need adjustment; emailing from a mobile device, can't test the URL. -Nick On Jun 22, 2011, at 1:05 PM, Ryan Butterfoss <[email protected]> wrote: > New question #162367 on Graphite: > https://answers.launchpad.net/graphite/+question/162367 > > Hi all, > > I'm new to graphite and looking to use it to do some metrics tracking for > some web services. We typically count the number of times a particular call > is made, and also the number of unique sessions using the service. Both are > incremental counters. One metric we'd like is the ratio of calls to new > sessions. This is simple enough to do with the divide series function, but > doesn't help us if we want to track the ratio for a specific timespan, say > time A to B. If there were a bunch of calls prior to time A, then since the > metric is a total over all time that will affect the ratio between time A and > B. Ideally what I'd like is a way to offset the number of calls by the value > of calls at time A. I see an offset that takes a single value, but what I > really need is "offset by myvalue@timeA". > > Is that possible? Or is there another way to accomplish this? > > Thanks > Ryan > > -- > You received this question notification because you are a member of > graphite-dev, which is an answer contact for Graphite. > > _______________________________________________ > Mailing list: https://launchpad.net/~graphite-dev > Post to : [email protected] > Unsubscribe : https://launchpad.net/~graphite-dev > More help : https://help.launchpad.net/ListHelp _______________________________________________ Mailing list: https://launchpad.net/~graphite-dev Post to : [email protected] Unsubscribe : https://launchpad.net/~graphite-dev More help : https://help.launchpad.net/ListHelp

