When using timer metrics, the current window contains timer samples instead of data to be analyzed. To analyze the data of a separate metric and not the timer metric itself, use database, value, and lookup functions.

Example:

The condition evaluates to true if the average value for temperature series exceeds the threshold.

db_statistic('avg','1 hour','temperature','sensor-01')>50

Example:

The condition evaluates to true if one of the sensors collecting temperature metric no longer performs data inserts.