Reference to the mmedian() function

Summary

mmedian(<timeWindow>, <tsExpression>)

Returns the moving median of each time series over the specified time window.

Parameters

ParameterDescription
timeWindow Amount of time in the moving time window. You can specify a time measurement based on the clock or calendar (1s, 1m, 1h, 1d, 1w), the window length (1vw) of the chart, or the bucket size (1bw) of the chart. Default is minutes if the unit is not specified.
tsExpression Expression that describes the time series you want moving medians for.

Description

The mmedian() function computes the moving median of each time series over a shifting time window. For example, mmedian(10m, ts(my.metric)) returns, at each point, the median of the data values over the previous 10 minutes for each specified time series.

To get the moving mean (rather than median), use the mpercentile() function as follows: mpercentile(50,<tsExpression>[,<args]).

By default, all the lines are dimmed. You can move the cursor over a line to highlight it, and Cmd-select lines if you want to turn on highlighting for multiple lines.  

Examples

The following example shows the result of a simple mmedian() query with the curser hovering over one of the lines.

mmedian

The next example shows how you can compare the mmedian() results by doing a Cmd-select of several lines.

mmedian compare