Reference to the downsample() function


downsample(<timeWindow>, <tsExpression>)

Returns the values in the expression that occur in each time window. For example, downsample(30m, ts(my.metric) returns the values of my.metric every half hour.


timeWindow The filter time window. The function filters the data so you see only the data for the specified time window.
tsExpression Expression describing the time series to downsample.


The downsample() function allows you to filter any time series to return just the values occurring every timeWindow.

For example, to see the values for every half-hour of a given time series, enter a query such as the following:

downsample(30, ts(“my.metric”))


The following example shows the latency for a specified source as a blue line. The dashed black line shows only one value every 30 minutes.

downsample example

See Also

Series Matching