graphite-dev team mailing list archive
-
graphite-dev team
-
Mailing list archive
-
Message #00230
Re: Has anyone added a percentile function?
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 <zirpubolci@xxxxxxxxx> 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<https://launchpad.net/%7Egraphite-dev>
> Post to : graphite-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~graphite-dev<https://launchpad.net/%7Egraphite-dev>
> More help : https://help.launchpad.net/ListHelp
>
>
Follow ups
References