-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Monitor alerts for AKS failing in the latest AzureRM version #7910
Comments
Hi @prabhakarreddy1234 ! Thanks for raising this issue. I think I’ve spotted the issue: As your error message already showed, it is a problem if an already created alert with The easiest solution would probably be to recreate your alerts by tainting them, but I agree that this issue should be solved in the code itself as well. |
@magodo Do you agree with my temporary solution? For the definite solution, would you propose tainting based on a catched error message or reimplement it with backwards compatibility? |
@prabhakarreddy1234 Apologize for your inconvinience :( @aristosvo You are right, both the workaround and the root cause analysis. The new AKS cluster will always use MultipleResourceMultipleMetricCriteria`. I'll try figure out a way to make it backwards compatible. |
…tiMetricCriteria for legacy metric alerts (#7995) The change in #7159 deprecates the usage of SingleResourceMultiMetricCriteria outright (replaced by MultipleResourceMultipleMetricCriteria). Unfortunately, that breaks the users who have metric alert created before that PR merged, which was using SingleResourceMultiMetricCriteria as its type. Then once those metric alerts get updated, current code will trigger an update from SingleResourceMultiMetricCriteria to MultipleResourceMultipleMetricCriteria, which seems not supported by service (as reported in #7910). This PR keeps those legacy resource to use the SingleResourceMultiMetricCriteria. If user wants to use the MultipleResourceMultipleMetricCriteria, they will have to recreate the resource. (fixes #7910)
This has been released in version 2.23.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example: provider "azurerm" {
version = "~> 2.23.0"
}
# ... other configuration ... |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
azurerm_monitor_metric_alert
resource provisioning started failing after upgrading toAzureRM: 2.20.0
. I Confirm that same configuration works well withAzureRM:2.18.0
.Exception :
Error creating or updating metric alert "kubernetes-pods-failing-alert" (resource group "rg-name"): insights.MetricAlertsClient#CreateOrUpdate: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="BadRequest" Message="Alert update failed. Updating from StaticThresholdCriteria and odata.type SingleResourceMultipleMetricCriteria to StaticThresholdCriteria and odata.type MultipleResourceMultipleMetricCriteria is not supported. Activity ID: 2af1fe71-2891-47ec-99b7-6b2b2d53a58b."
I see that there have been some feature enhancements on
azurerm_monitor_metric_alert
inAzureRM:2.19.0
. So just wondering if i need to make any changes to my configuration.It's happening for all AKS alerts.
azurerm_2.20.0
The text was updated successfully, but these errors were encountered: