grafana/docs/sources
Seunghun Shin c784de6ef5
Alerting: Add compressed periodic save for alert instances (#111803)
What is this feature?

This PR implements compressed periodic save for alert state storage, providing a more efficient alternative to regular periodic saves by grouping alert instances by rule UID and storing them using protobuf and snappy compression. When enabled via the state_compressed_periodic_save_enabled configuration option, the system groups alert instances by their alert rule, compresses each group using protobuf serialization and snappy compression, and processes all rules within a single database transaction at specified intervals instead of syncing after every alert evaluation cycle.

Why do we need this feature?

During discussions in PR #111357, we identified the need for a compressed approach to periodic alert state storage that could further reduce database load beyond the jitter mechanism. While the jitter feature distributes database operations over time, this compressed periodic save approach reduces the frequency of database operations by batching alert state updates at explicitly declared intervals rather than syncing after every alert evaluation cycle.
This approach provides several key benefits:

- Reduced Database Frequency: Instead of frequent sync operations tied to alert evaluation cycles, updates occur only at configured intervals
- Storage Efficiency: Rule-based grouping with protobuf and snappy compression significantly reduces storage requirements

The compressed periodic save complements the existing jitter mechanism by providing an alternative strategy focused on reducing overall database interaction frequency while maintaining data integrity through compression and batching.

Who is this feature for?

- Platform/Infrastructure teams managing large-scale Grafana deployments with high alert cardinality
- Organizations looking to optimize storage costs and database performance for alerting workloads
- Production environments with 1000+ alert rules where database write frequency is a concern
2025-11-07 11:51:48 +01:00
..
administration Plugins: cleanup feature toggle pluginsFrontendSandbox (#113439) 2025-11-06 11:06:53 +01:00
alerting Alerting: Add compressed periodic save for alert instances (#111803) 2025-11-07 11:51:48 +01:00
breaking-changes Docs: Plugins link to catalog (#113103) 2025-10-30 06:33:26 +01:00
datasources CloudWatch: Add anomaly command to language support, add documentation for anomaly queries (#113311) 2025-11-07 09:54:24 +00:00
developers Docs: Add information on continue tokens (#113144) 2025-10-29 12:26:42 +03:00
fundamentals Restructure IAM documentation (#112929) 2025-10-24 12:54:59 +01:00
introduction Restructure IAM documentation (#112929) 2025-10-24 12:54:59 +01:00
observability-as-code Update grafanacli-workflows.md with command link (#113527) 2025-11-06 17:02:50 +01:00
setup-grafana Document rule_version_record_limit setting (#113511) 2025-11-06 15:10:25 -06:00
shared Docs: Add styling from field cell option (#113107) 2025-10-28 13:16:37 -04:00
troubleshooting
tutorials
upgrade-guide
visualizations Docs: Clarify difference between "Add" and "Replace" for saved queries (#113318) 2025-10-31 17:25:59 -04:00
whatsnew Docs: Plugins link to catalog (#113103) 2025-10-30 06:33:26 +01:00
_index.md