[[ gah! i sent from the wrong email address again. :-) ]] The percentile I'm looking to calculate is the kind used for monitoring latencies and response times. I.e. 95% is the latencies for a time frame, sorted, and then the 95th percentile in that sorted list.
Sorry I didn't explain that initially. The problem I see is trying to decide which values to examine. I.e. should I just look at the last 100 and report the p% value requested, or what. This is a problem I'm working out with the users who requested it. I'll let you know what we decide to do and see if it's useful for others as well. thanks, Allan --- On Fri, 1/29/10, Chris Davis <[email protected]> wrote: > From: Chris Davis <[email protected]> > Subject: Re: [Graphite-dev] Has anyone added a percentile function? > To: "allan bailey" <[email protected]> > Cc: [email protected] > Date: Friday, January 29, 2010, 11:26 AM > There is the asPercent() function that can > be used two ways: > > # Calculate a percentage of one metric using another metric > as a maximum value > asPercent(resources.foo.utilized, resources.foo.capacity) > > # Calculate a percentage of one or more metrics using a > specific fixed maximum value > > asPercent(resources.*.utilized, 42) > > The first kind is useful if you have a dynamic capacity to > consider, the latter when you have a fixed maximum known in > advance. Both of these uses will output a value 0 or greater > (capped at 100 if the specified maximum is correct). > > > -Chris > > > On Fri, Jan 29, 2010 at 12:40 PM, > allan bailey <[email protected]> > wrote: > > > Some of my users are asking for a percentile function to > apply to graphs, especially groups. > > my thought is something like: > > percentile(metrics_pattern, percentile, > some_point_limit) > > where metrics_pattern is either a single metric, or a > group via * use. > > > percentile is just a float for the percentile. .50, > .90, .95, and .99 are the typical use cases. > some_point_limit is what i'm not certain about. > > If someone else has implemented this, please let me know. > Otherwise I'm going to figure out > > > what makes sense for this and implement it. > > thanks, > Allan > > > > _______________________________________________ > > Mailing list: https://launchpad.net/~graphite-dev > > Post to : [email protected] > > Unsubscribe : https://launchpad.net/~graphite-dev > > More help : https://help.launchpad.net/ListHelp > > > > > > -----Inline Attachment Follows----- > > _______________________________________________ > 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

