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

Fix MimirAutoscalerNotActive alert #10564

Merged
merged 1 commit into from
Feb 3, 2025
Merged

Fix MimirAutoscalerNotActive alert #10564

merged 1 commit into from
Feb 3, 2025

Conversation

pracucci
Copy link
Collaborator

@pracucci pracucci commented Feb 3, 2025

What this PR does

While reviewing #10473 I noticed that the MimirAutoscalerNotActive alert is not working because of the missing metric aggregation. This PR fixes it.

To manually test it I've flipped the {condition="ScalingActive",status="false"} to {condition="ScalingActive",status="true"}, so that all HPAs match.

Before (no matching series):

Screenshot 2025-02-03 at 10 40 53

After (231 matching series):

Screenshot 2025-02-03 at 10 41 13

Which issue(s) this PR fixes or relates to

N/A

Checklist

  • Tests updated.
  • Documentation added.
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX].
  • about-versioning.md updated with experimental features.

@@ -53,8 +53,6 @@
* [BUGFIX] PromQL: Fix <aggr_over_time> functions with histograms https://github.com/prometheus/prometheus/pull/15711 #10400
* [BUGFIX] MQE: Fix <aggr_over_time> functions with histograms #10400
* [BUGFIX] Distributor: return HTTP status 415 Unsupported Media Type instead of 200 Success for Remote Write 2.0 until we support it. #10423
* [BUGFIX] Query-frontend: Add flag `-query-frontend.prom2-range-compat` and corresponding YAML to rewrite queries with ranges that worked in Prometheus 2 but are invalid in Prometheus 3. #10445 #10461
* [BUGFIX] mixin: fix autoscaling panels. #10473
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Note to reviewers: moved below.

@@ -53,8 +53,6 @@
* [BUGFIX] PromQL: Fix <aggr_over_time> functions with histograms https://github.com/prometheus/prometheus/pull/15711 #10400
* [BUGFIX] MQE: Fix <aggr_over_time> functions with histograms #10400
* [BUGFIX] Distributor: return HTTP status 415 Unsupported Media Type instead of 200 Success for Remote Write 2.0 until we support it. #10423
* [BUGFIX] Query-frontend: Add flag `-query-frontend.prom2-range-compat` and corresponding YAML to rewrite queries with ranges that worked in Prometheus 2 but are invalid in Prometheus 3. #10445 #10461
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Note to reviewers: I accidentally duplicated this entry in #10473.

@pracucci pracucci marked this pull request as ready for review February 3, 2025 09:41
@pracucci pracucci requested a review from a team as a code owner February 3, 2025 09:41
Copy link
Contributor

@dimitarvdimitrov dimitarvdimitrov left a comment

Choose a reason for hiding this comment

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

we've come back to this fix so many times, sorry for botching it the first times

LGTM

@pracucci
Copy link
Collaborator Author

pracucci commented Feb 3, 2025

we've come back to this fix so many times, sorry for botching it the first times

No problem!

@pracucci pracucci merged commit 9515226 into main Feb 3, 2025
30 checks passed
@pracucci pracucci deleted the fix-AutoscalerNotActive branch February 3, 2025 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants