The engine executes LogQL query and gets time series data with labels (Vector). The engine iterates through each series, extracting values to compare against configured threshold expressions.
This mode is suitable for users who prefer writing filter conditions directly in LogQL, or scenarios that only care about “whether anomalous data exists”. Recommended for log anomaly detection alerts.
Query Statement (LogQL): Write a query that is expected to always have data
Example: Count log reporting rate from all hosts:
rate({job="node-logs"} [1m])
Evaluation Rules: If a Series (uniquely identified by labels, like instance="host-1") existed in previous cycles but cannot be found in current and N consecutive cycles, triggers “No Data” alert
No-data alerts support configuring the alert ending mode, which decides how the alert ends:
Ending Mode
Description
End automatically when data reappears
Default. The alert ends automatically once the data reappears
End when data reappears or the timeout expires
The alert ends when the data reappears or the automatic close timeout is reached. The timeout is in seconds with a minimum of 1. Available only when the “Alert if previously found data is now missing” mode is enabled
Manual close only
The alert stays active until you close it manually
Original logs can be obtained through related queries during alerts. But typically not recommended to get too many; just get 1 as a log sample to include in alert message.Related query results can be rendered in “Notes Description”, example: