Skip to content

Commit

Permalink
Use resident set memory for the etcd memory alert. (#9997)
Browse files Browse the repository at this point in the history
* Use resident memory for the etcd memory alert.

* Changelog entry.

* Rebuild mixin yamls.

* And rebuild helm alerts.
  • Loading branch information
seizethedave authored Nov 25, 2024
1 parent 289a1ab commit acda41c
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
* [BUGFIX] Alerts: Fix autoscaling metrics joins in `MimirAutoscalerNotActive` when series churn. #9412
* [BUGFIX] Alerts: Exclude failed cache "add" operations from alerting since failures are expected in normal operation. #9658
* [BUGFIX] Alerts: Exclude read-only replicas from `IngesterInstanceHasNoTenants` alert. #9843
* [BUGFIX] Alerts: Use resident set memory for the `EtcdAllocatingTooMuchMemory` alert so that ephemeral file cache memory doesn't cause the alert to misfire. #9997

### Jsonnet

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ spec:
runbook_url: https://grafana.com/docs/mimir/latest/operators-guide/mimir-runbooks/#etcdallocatingtoomuchmemory
expr: |
(
container_memory_working_set_bytes{container="etcd"}
container_memory_rss{container="etcd"}
/
( container_spec_memory_limit_bytes{container="etcd"} > 0 )
) > 0.65
Expand All @@ -619,7 +619,7 @@ spec:
runbook_url: https://grafana.com/docs/mimir/latest/operators-guide/mimir-runbooks/#etcdallocatingtoomuchmemory
expr: |
(
container_memory_working_set_bytes{container="etcd"}
container_memory_rss{container="etcd"}
/
( container_spec_memory_limit_bytes{container="etcd"} > 0 )
) > 0.8
Expand Down
4 changes: 2 additions & 2 deletions operations/mimir-mixin-compiled-baremetal/alerts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ groups:
runbook_url: https://grafana.com/docs/mimir/latest/operators-guide/mimir-runbooks/#etcdallocatingtoomuchmemory
expr: |
(
container_memory_working_set_bytes{container="etcd"}
container_memory_rss{container="etcd"}
/
( container_spec_memory_limit_bytes{container="etcd"} > 0 )
) > 0.65
Expand All @@ -597,7 +597,7 @@ groups:
runbook_url: https://grafana.com/docs/mimir/latest/operators-guide/mimir-runbooks/#etcdallocatingtoomuchmemory
expr: |
(
container_memory_working_set_bytes{container="etcd"}
container_memory_rss{container="etcd"}
/
( container_spec_memory_limit_bytes{container="etcd"} > 0 )
) > 0.8
Expand Down
4 changes: 2 additions & 2 deletions operations/mimir-mixin-compiled/alerts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ groups:
runbook_url: https://grafana.com/docs/mimir/latest/operators-guide/mimir-runbooks/#etcdallocatingtoomuchmemory
expr: |
(
container_memory_working_set_bytes{container="etcd"}
container_memory_rss{container="etcd"}
/
( container_spec_memory_limit_bytes{container="etcd"} > 0 )
) > 0.65
Expand All @@ -607,7 +607,7 @@ groups:
runbook_url: https://grafana.com/docs/mimir/latest/operators-guide/mimir-runbooks/#etcdallocatingtoomuchmemory
expr: |
(
container_memory_working_set_bytes{container="etcd"}
container_memory_rss{container="etcd"}
/
( container_spec_memory_limit_bytes{container="etcd"} > 0 )
) > 0.8
Expand Down
4 changes: 2 additions & 2 deletions operations/mimir-mixin/alerts/alerts.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
alert: 'EtcdAllocatingTooMuchMemory',
expr: |||
(
container_memory_working_set_bytes{container="etcd"}
container_memory_rss{container="etcd"}
/
( container_spec_memory_limit_bytes{container="etcd"} > 0 )
) > 0.65
Expand All @@ -894,7 +894,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
alert: 'EtcdAllocatingTooMuchMemory',
expr: |||
(
container_memory_working_set_bytes{container="etcd"}
container_memory_rss{container="etcd"}
/
( container_spec_memory_limit_bytes{container="etcd"} > 0 )
) > 0.8
Expand Down

0 comments on commit acda41c

Please sign in to comment.