-
Notifications
You must be signed in to change notification settings - Fork 5
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
Implement baseline alerts #136
Comments
Alerts also have a cost, so reusing alerts could be a good idea with that in mind. |
Interesting finding... I was playing around with setting the scope of an alert rule to multiple resources, which gave me the following warning:
Investigate this warning, as it might be important for the decision on whether or not alert rules should be created for each individual resource, or if alert rules should be reused across resources of the same type. Update: overview of resource types that support multi-resource alert rules: https://learn.microsoft.com/en-us/azure/azure-monitor/alerts/alerts-metric-near-real-time#metrics-and-dimensions-supported Seems like very few resource types support multi-resource alert rules. Maybe ignore for now? |
Added task list with link to PR for SQL module. |
Arguments against including alerts in baseline modules:
For comparison, including a diagnostic setting in our modules made sense since it only requires the creation of a single simple resource that can be modified as needed by using a single module input ( |
An addition, if we created the alerts as a sub module, we would avoid a bloated main module. Although this would then mean that for each resource in the users configuration, they would need one alert sub-module block, for each resource. Doubling the amount of module blocks and cause the config to be bloated. As this is not required per se, we could define the use of alerts as an example for now. |
Another potential solution... Using the Azure Key Vault module as an example: Current implementationWith the current implementation, the module
Proposed implementationA new submodule
A new submodule
The module
So by calling the main |
Waiting for POC from @hknutsen before moving into todo |
equinor/terraform-azurerm-key-vault#98 has been updated with a POC of the proposed implementation. |
Putting on hold until equinor/terraform-azurerm-key-vault#98 (comment) has been discussed. |
Implement baseline alerts according to: https://azure.github.io/azure-monitor-baseline-alerts/welcome/
This opens up the possibility of moving the app-service and aci modules out of archive, because by implementing alerts we'll have a reason to keep them 🙂
Example: equinor/terraform-azurerm-app-service#10. Note though that alert rules can be reused for multiple resources of the same type, so it might be a better idea to create an
alerts
submodule for each module. Discuss! 🙂Tasks
The text was updated successfully, but these errors were encountered: