File tree Expand file tree Collapse file tree 2 files changed +22
-8
lines changed
tests/golden/master/openshift4-logging/openshift4-logging Expand file tree Collapse file tree 2 files changed +22
-8
lines changed Original file line number Diff line number Diff line change @@ -178,10 +178,16 @@ groups:
178178 - alert : LokistackSchemaUpgradesRequired
179179 annotations :
180180 message : |-
181- Object storage schema needs upgrade.
182- summary : " The applied storage schema config is old and should be upgraded."
181+ The LokiStack "{{ $labels.stack_name }}" in namespace "{{ $labels.stack_namespace }}" is using a storage schema
182+ configuration that does not contain the latest schema version. It is recommended to update the schema
183+ configuration to update the schema version to the latest version in the future.
184+ summary : " One or more of the deployed LokiStacks contains an outdated storage schema configuration."
183185 runbook_url : " [[ .RunbookURL ]]#Lokistack-Schema-Upgrades-Required"
184- expr : sum by(stack_id) (lokistack_warnings_count) > 0
186+ expr : |
187+ sum (
188+ lokistack_status_condition{reason="StorageNeedsSchemaUpdate",status="true"}
189+ ) by (stack_namespace, stack_name)
190+ > 0
191+ for : 1m
185192 labels :
186193 severity : warning
187- resource : ' {{ $labels.stack_id}}'
Original file line number Diff line number Diff line change @@ -206,12 +206,20 @@ spec:
206206 syn_component : openshift4-logging
207207 - alert : SYN_LokistackSchemaUpgradesRequired
208208 annotations :
209- message : Object storage schema needs upgrade.
209+ message : |-
210+ The LokiStack "{{ $labels.stack_name }}" in namespace "{{ $labels.stack_namespace }}" is using a storage schema
211+ configuration that does not contain the latest schema version. It is recommended to update the schema
212+ configuration to update the schema version to the latest version in the future.
210213 runbook_url : https://github.com/grafana/loki/blob/main/operator/docs/lokistack/sop.md#Lokistack-Schema-Upgrades-Required
211- summary : The applied storage schema config is old and should be upgraded.
212- expr : sum by(stack_id) (lokistack_warnings_count) > 0
214+ summary : One or more of the deployed LokiStacks contains an outdated storage
215+ schema configuration.
216+ expr : |
217+ sum (
218+ lokistack_status_condition{reason="StorageNeedsSchemaUpdate",status="true"}
219+ ) by (stack_namespace, stack_name)
220+ > 0
221+ for : 1m
213222 labels :
214- resource : ' {{ $labels.stack_id}}'
215223 severity : warning
216224 syn : ' true'
217225 syn_component : openshift4-logging
You can’t perform that action at this time.
0 commit comments