SignalFx Developers Guide

sample_stddev()

Calculates the sample standard deviation of metrics in the input stream. This calculation is less biased than the stddev() method when the input stream represents a small population.

Syntax

Aggregation

sample_stddev([by=grp])

Table 1. Parameter definitions
Parameter Type Description

grp

string or list of strings. Default is None.

Optional: Names of properties to group the output by

Transformation

sample_stddev([over=duration])

Table 2. Parameter definitions
Parameter Type Description

duration

Duration (number and duration units)
Durations are specified as a number followed by a single character:

  • s: seconds

  • m: minutes

  • h: hours

  • d: days

The default is None.

Optional: Duration over which to get the sample standard deviation of the input metrics

Both forms return a reference to the input stream object.

Examples

1
2
3
4
5
6
7
8
#Aggregation - sample stddev by env
data('cpu.utilization').sample_stddev(by='env')

#Aggregation - sample stddev by env and datacenter
data('cpu.utilization').sample_stddev(by=['env', 'datacenter'])

#Transformation - cpu.utilization sample stddev over the past 15 minutes
data('cpu.utilization').sample_stddev(over='15m')

© Copyright 2019 SignalFx.

Third-party license information