Annotation: Add clean up job for old annotations (#26156)
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com> Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
co-authored by
Marcus Efraimsson
Diana Payton
Arve Knudsen
parent
0bc67b032a
commit
20747015f6
@@ -976,6 +976,43 @@ Sets the minimum interval between rule evaluations. Default value is `1`.
|
||||
|
||||
> **Note.** This setting has precedence over each individual rule frequency. If a rule frequency is lower than this value, then this value is enforced.
|
||||
|
||||
### max_annotation_age =
|
||||
|
||||
Configures for how long alert annotations are stored. Default is 0, which keeps them forever.
|
||||
This setting should be expressed as a duration. Examples: 6h (hours), 10d (days), 2w (weeks), 1M (month).
|
||||
|
||||
### max_annotations_to_keep =
|
||||
|
||||
Configures max number of alert annotations that Grafana stores. Default value is 0, which keeps all alert annotations.
|
||||
|
||||
<hr>
|
||||
|
||||
## [annotations.dashboard]
|
||||
|
||||
Dashboard annotations means that annotations are associated with the dashboard they are created on.
|
||||
|
||||
### max_age
|
||||
|
||||
Configures how long dashboard annotations are stored. Default is 0, which keeps them forever.
|
||||
This setting should be expressed as a duration. Examples: 6h (hours), 10d (days), 2w (weeks), 1M (month).
|
||||
|
||||
### max_annotations_to_keep
|
||||
|
||||
Configures max number of dashboard annotations that Grafana stores. Default value is 0, which keeps all dashboard annotations.
|
||||
|
||||
## [annotations.api]
|
||||
|
||||
API annotations means that the annotations have been created using the API without any association with a dashboard.
|
||||
|
||||
### max_age
|
||||
|
||||
Configures how long Grafana stores API annotations. Default is 0, which keeps them forever.
|
||||
This setting should be expressed as a duration. Examples: 6h (hours), 10d (days), 2w (weeks), 1M (month).
|
||||
|
||||
### max_annotations_to_keep
|
||||
|
||||
Configures max number of API annotations that Grafana keeps. Default value is 0, which keeps all API annotations.
|
||||
|
||||
<hr>
|
||||
|
||||
## [explore]
|
||||
|
||||
Reference in New Issue
Block a user