SignalFx Developers Guide

abs()

Return the absolute value of each metric in the input stream.

Syntax

abs(inputstream)

Table 1. Parameter definitions
Parameter Type Description

input_stream

stream

Stream of metrics

Returns a _stream_object containing the absolute value of each metric timeseries in the input stream

Examples

1
2
3
4
5
6
7
8
#Find the absolute value of the difference of cpu.idle and cpu.user

idle = data('cpu.idle')
user = data('cpu.user')
value = abs(idle - user).publish()

#Find mean of the abs of rate of change
value = data('cpu.idle').rateofchange().map(lambda x: abs(x)).mean().publish()

© Copyright 2019 SignalFx.

Third-party license information