Returns the moving median of each time series over the specified time window.
|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 medians for.|
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:
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.
The following example shows the result of a simple
mmedian() query with the curser hovering over one of the lines.
The next example shows how you can compare the
mmedian() results by doing a Cmd-select of several lines.
The following video shows how you can prevent false alerms with