-
Notifications
You must be signed in to change notification settings - Fork 255
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
[General workload issue]: Adding a service alerts for DBforMySQL #447
Comments
Hello @ChrisPolewiak, thanks for your interest in AMBA. Your assumption is correct. DBforMySQL/flexibleServers is not included in the ALZ pattern so there is not a parameter or initiative that will automatically add those policies. You will need to add them manually using the templates provided. |
Ok is there any guidance how to add it automatically? For example I want an alert triggers to many services but I do not want to click each of them manually on the portal. |
Hello Chris, we do not have any scripts today other than what you see in ALZ which can be used as an example to follow for other services. We are working on ways to make automation easier for all the other services. Some of the pieces are there with the ARM\Bicep\Policy templates for each alert. If you are not already aware, in the Github repo under each service, there is a template folder. In those folders are arm\bicep\policy folders that contain templates that can be used in scripts. For now, I am going to mark this as an enhancement for future considerations. Let us know if you have any further questions. |
last question is there any json file with list of all available polices? I started working with a script which allows to mark in configuration which policy we want to import and then automatically download policy from GH and implement. Some json file with all available polices and alerts could help - currently I'm working with alerts.yaml files... :-( |
Hello Chris, have you seen this json file? https://azure.github.io/azure-monitor-baseline-alerts/amba-alerts.json This has all of the alerts. One potential method would be to find the policy file using the resource type, metric name and the guid. Or perhaps just searching all templates\policy folders in the repo for the GUID. |
perfect.. generate similar using tooling/export-alerts/export-alerts.py now I'm working how to import single policy using JSON file and parameters :-/ something like this: New-AzPolicyDefinition -Name 'AMBA-AnalysisServices-servers-memory_metric' - but still got an error: :-( |
Hello @ChrisPolewiak, If you just wanted to deploy the memorymetric policy definition you would need to change the file to include the $schema, and content version like so: Then deploy using AZ CLI like so: Would you find it beneficial to have the policy files generated with the $schema and content version so they could be easily deployed in this way? |
Check for previous/existing GitHub issues
Issue Type?
Feature Request
Description
How to deploy a set of polices to monitor for example Azure DB for MySQL
Do I have to manually add all the policies from "azure-monitor-baseline-alerts/services/DBforMySQL/flexibleServers/templates" to my IaC code, or there is a parameter in alzArm.param.json which automatically add those polices?
I do not found a documentation about that, there are only policy (json, bicep, arm) definitions without an usage guide...
Thanks in advance
The text was updated successfully, but these errors were encountered: