Skip to content

Commit 39d7989

Browse files
committed
HYPERFLEET-856 - fix: correct alert description to include stuck threshold
The metric already embeds a 30m stuck threshold from the collector, so the actual time before the alert fires is threshold + alert delay. Update descriptions to clarify both components.
1 parent 3f46062 commit 39d7989

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

charts/templates/prometheusrule.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ spec:
2222
summary: "HyperFleet resources stuck in Pending Deletion state"
2323
description: >-
2424
{{ "{{ $value }}" }} {{ "{{ $labels.resource_type }}" }} resource(s) have been in
25-
Pending Deletion state for more than {{ .Values.prometheusRule.rules.deletionStuck.for | default "5m" }}.
25+
Pending Deletion state for more than {{ .Values.config.metrics.deletion_stuck_threshold | default "30m" }}
26+
(stuck threshold) + {{ .Values.prometheusRule.rules.deletionStuck.for | default "5m" }} (alert delay).
2627
runbook_url: {{ .Values.prometheusRule.rules.deletionStuck.runbookUrl | default "" | quote }}
2728
- alert: HyperFleetResourceDeletionStuckCritical
2829
expr: max by (namespace, resource_type)(hyperfleet_api_resource_pending_deletion_stuck) > 0
@@ -33,6 +34,7 @@ spec:
3334
summary: "HyperFleet resources timed out in Pending Deletion state"
3435
description: >-
3536
{{ "{{ $value }}" }} {{ "{{ $labels.resource_type }}" }} resource(s) have been in
36-
Pending Deletion state for more than {{ .Values.prometheusRule.rules.deletionTimeout.for | default "30m" }}. Immediate investigation required.
37+
Pending Deletion state for more than {{ .Values.config.metrics.deletion_stuck_threshold | default "30m" }}
38+
(stuck threshold) + {{ .Values.prometheusRule.rules.deletionTimeout.for | default "30m" }} (alert delay). Immediate investigation required.
3739
runbook_url: {{ .Values.prometheusRule.rules.deletionTimeout.runbookUrl | default "" | quote }}
3840
{{- end }}

0 commit comments

Comments
 (0)