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

Automatically generated policies for all Metrics #298

Merged
merged 3 commits into from
Aug 2, 2024

Conversation

arjenhuitema
Copy link
Contributor

@arjenhuitema arjenhuitema commented Aug 2, 2024

Overview/Summary

This PR includes the first iteration of policy automation using YAML. Policies are designated as preview by default, except when they are duplicates of existing ALZ policies.

Right now, the scope is limited to Metric alerts, applicable to static as well as dynamic thresholds. Log and Activity come with extra dependencies and considerations to address, which will be included in the future.

The automation workflow will also be implemented at a later stage.

This PR fixes/adds/changes/removes

  1. PowerShell script to automate Policy creation from YAML data.
  2. Policy templates.
  3. Initial preview Policy version for all Metrics.

As part of this Pull Request I have

  • Read the Contribution Guide and ensured this PR is compliant with the guide
  • Checked for duplicate Pull Requests
  • Associated it with relevant GitHub Issues or ADO Work Items (Internal Only)
  • Ensured my code/branch is up-to-date with the latest changes in the main branch
  • Ensured PR tests are passing
  • Updated relevant and associated documentation (e.g. Contribution Guide, Docs etc.)

@arjenhuitema arjenhuitema merged commit e5122fb into main Aug 2, 2024
4 of 5 checks passed
@arjenhuitema arjenhuitema deleted the feat-generate-policies branch August 2, 2024 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AMBA Core Issues / PR's related AMBA Core Area: Policy 📝 Issues / PR's related to Policy
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants