SignalFx Developers Guide

percentile()

Calculates the nth percentile of metric timeseries in the input stream.

Syntax

Aggregation

percentile(pct, by=None)

Table 1. Parameter definitions
Parameter Type Description

pct

Double

The number to calculate, between 0.0 (exclusive) and 100.0 (inclusive)

by

string or list of strings

Properties to group the output by

Transformation

percentile(pct, over=None)

Table 2. Parameter definitions
Parameter Type Description

pct

Double

The number to calculate, between 0.0 (exclusive) and 100.0 (inclusive)

over

Duration (number and duration units indicator: "s" = seconds, "m" = minutes, "h" = hours)

Duration over which to get the specified percentile

Both forms return a reference to the input stream object.

Examples

1
2
3
4
5
6
7
8
#Aggregation - 75th percentile by env
data('cpu.utilization').percentile(75, by='env')

#Aggregation - 90th percentile by env and datacenter
data('cpu.utilization').percentile(90, by=['env', 'datacenter'])

#Transformation - cpu.utilization 99th percentile over the past 45 minutes
data('cpu.utilization').percentile(99, over='45m')

© Copyright 2019 SignalFx.

Third-party license information