Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add MimirHPANeedsToBeScaledUp alert #1340

Merged
merged 7 commits into from
Sep 8, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- Add `MimirHPANeedsToBeScaledUp` alert, to detect when Mimir's HPAs have reached maximum capacity.
TheoBrigitte marked this conversation as resolved.
Show resolved Hide resolved

### Changed

- alertmanager alerts: add link to dashboard
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,30 @@ spec:
severity: page
team: atlas
topic: observability
- alert: MimirHPANeedsToBeScaledUp
annotations:
description: '{{`Mimir ${ labels.horizontalpodautoscaler } HPA has reached maximum replicas and consume too much resources, it needs to be scaled up.`}}'
opsrecipe: mimir-ingester/
expr: |-
(
kube_horizontalpodautoscaler_status_desired_replicas{namespace="mimir"} >=
on(cluster_id, customer, installation, namespace, horizontalpodautoscaler)
kube_horizontalpodautoscaler_spec_max_replicas{namespace="mimir"}
)
and on(cluster_id, customer, installation, namespace, horizontalpodautoscaler)
(
kube_horizontalpodautoscaler_status_target_metric{namespace="mimir"} >
on(cluster_id, customer, installation, namespace, horizontalpodautoscaler, metric_name, metric_target_type)
kube_horizontalpodautoscaler_spec_target_metric{namespace="mimir"}
)
for: 30m
labels:
area: platform
cancel_if_cluster_status_creating: "true"
cancel_if_cluster_status_deleting: "true"
cancel_if_cluster_status_updating: "true"
cancel_if_outside_working_hours: "true"
severity: page
team: atlas
topic: observability
{{- end }}