Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions operations/mimir-mixin/alerts/ingest-storage.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,14 @@ local utils = import 'mixin-utils/utils.libsonnet';
alert: $.alertName('StrongConsistencyOffsetMissing'),
'for': '5m',
expr: |||
sum by (%(alert_aggregation_labels)s) (rate(cortex_ingest_storage_strong_consistency_requests_total{component="partition-reader", with_offset="false"}[%(range)s]))
/
sum by (%(alert_aggregation_labels)s) (rate(cortex_ingest_storage_strong_consistency_requests_total{component="partition-reader"}[%(range)s]))
* 100 > 5
(
sum by (%(alert_aggregation_labels)s) (rate(cortex_ingest_storage_strong_consistency_requests_total{component="partition-reader", with_offset="false"}[%(range)s]))
/
sum by (%(alert_aggregation_labels)s) (rate(cortex_ingest_storage_strong_consistency_requests_total{component="partition-reader"}[%(range)s]))
* 100 > 5
)
and
sum by (%(alert_aggregation_labels)s) (rate(cortex_ingest_storage_strong_consistency_requests_total{component="partition-reader"}[%(range)s])) > 0

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alert gate ignores strong consistency

Medium Severity

The and clause no longer requires with_offset="true" samples, so it matches any strong-consistency traffic. When only with_offset="false" requests exist, the ratio is 100% and the total rate is positive, so StrongConsistencyOffsetMissing still fires under default eventual consistency.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 236f18b. Configure here.

||| % {
alert_aggregation_labels: $._config.alert_aggregation_labels,
range: $.rateInterval('1m'),
Expand Down