SignalFx Developers Guide

size()

Counts the number of metrics in the input stream

Syntax

Aggregation

size(by=None)

Table 1. Parameter definitions
Parameter Type Description

by

string or list of strings

Optional, default=None. Names of properties to group the results by

Transformation

size(over=None)

Table 2. Parameter definitions
Parameter Type Description

over

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

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