Reference to the mmax() function

Summary

mmax(<timeWindow>, <expression>)

Returns the moving maximum 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.
expression Expression describing the time series you want moving maximums for.

Description

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

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

Examples

The following example shows the result of a simple mmax() query.

mmax

See Also

Using Moving and Tumbling Windows to Highlight Trends