SignalFx Developers Guide

ceil()

Finds the ceiling of each metric in the input stream and returns a new stream containing these values.

Syntax

ceil(inputstream)

Table 1. Parameter definitions
Parameter Type Description

inputstream

stream

Metric stream

Returns a stream object containing the ceiling of each input metric stream

Examples

1
2
3
4
5
6
7
#Find the ceiling of the percentage of cpu.idle to all cpu metrics
idle = data('cpu.idle')
all = data('cpu.*').sum()
value = ceil(idle/all * 100).publish()

#Find ceiling percentage of the rate of change
value = data('cpu.idle').rateofchange().map(lambda x:ceil(x*100)).mean().publish()

© Copyright 2019 SignalFx.

Third-party license information