SignalFx Developers Guide

size()

Counts the number of metrics in the input stream

Syntax

Aggregation

size([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 results by

Transformation

size([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 size of input metrics that have data

Both forms return a reference to the input stream object.

Examples

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

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

#Transformation - count all(reporting or not) cpu.utilization timeseries
#in the system
data('cpu.utilization').size(over='1h')

© Copyright 2019 SignalFx.

Third-party license information