SignalFx Developers Guide

median()

Find the median value of the inputs.

Syntax

median(inputstream, [inputstream…]))

Table 1. Parameter definitions
Parameter Type Description

inputstream

stream

An input stream

Returns a new stream object with the median of all inputs.

Examples

1
2
3
4
#Find the median of cpu.idle and cpu.user metrics
idle = data('cpu.idle')
user = data('cpu.user')
value = median(idle, user).publish()

© Copyright 2020 Splunk, Inc.

Third-party license information