SignalFx Developers Guide

sample_variance()

Calculates the sample variance of inputs in the stream. This is less biased than total variance when you have a small population.

Syntax

Aggregation

sample_variance([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_variance([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 variance 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 variance by env
data('cpu.utilization').sample_variance(by='env')

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

#Transformation - cpu.utilization sample variance over that past 15 minutes
data('cpu.utilization').sample_variance(over='15m')

© Copyright 2019 SignalFx.

Third-party license information