What's Changed
- Fix Alerts State Timeline Panel by @jasonacox in #750
Dashboard Updates
- Fixed Alerts State Timeline panel in Grafana 12, which was displaying empty rows for alert types that had no occurrences during the selected time period.
- Problem: The
state-timelinepanel was rendering a row for every alert field returned by InfluxDB, even when the field contained only0ornullvalues throughout the selected time range. This resulted in a large number of empty, uninformative rows cluttering the panel. - Fix: Added a
byValuefield override using Grafana's built-in "Fields with values" matcher, which hides any series where the maximum value does not equal1. A secondarybyType: timeoverride ensures the Time field is never inadvertently hidden by the first rule. Only alert rows that actually triggered (have at least one value of1) during the selected time range are displayed. - Resolved "Data outside time range" UI errors while keeping the Alerts query in table format (
SELECT *::field) by relying on override-based filtering and updated transformations instead of changing the query to time series format. - Updated field rename transformation regex from
max_(.*)→$1to(alerts\.)?max_(.*)→$2to strip thealerts.max_measurement prefix from row labels.
- Problem: The
Thanks to @jgleigh for reporting issue.
Full Changelog: v5.0.3...v5.0.4