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

feat: azure activity logs #325

Merged
merged 3 commits into from
Dec 7, 2023
Merged

feat: azure activity logs #325

merged 3 commits into from
Dec 7, 2023

Conversation

adityathebe
Copy link
Member

resolves: #319

Copy link

github-actions bot commented Dec 5, 2023

E2E -

0 tests   0 ✔️  0s ⏱️
0 suites  0 💤
0 files    0

Results for commit fe47ed7.

♻️ This comment has been updated with latest results.

@adityathebe adityathebe force-pushed the feat/azure-activity-log branch 2 times, most recently from 16d2204 to f2140a1 Compare December 5, 2023 05:43
@adityathebe adityathebe marked this pull request as ready for review December 5, 2023 05:43
@adityathebe adityathebe requested a review from moshloop December 5, 2023 05:43
@adityathebe
Copy link
Member Author

Not sure why there are multiple events for the same action.

image

@moshloop
Copy link
Member

moshloop commented Dec 5, 2023

@adityathebe what are we using as the change id ?

@adityathebe adityathebe force-pushed the feat/azure-activity-log branch from f2140a1 to 7b316a0 Compare December 5, 2023 11:36
@adityathebe
Copy link
Member Author

image

image

image

@adityathebe adityathebe force-pushed the feat/azure-activity-log branch from 53bd600 to 9895d6f Compare December 5, 2023 13:01
scrapers/azure/azure.go Outdated Show resolved Hide resolved
// azureActivityExcludeOperations is a list of activity logs we can avoid
// as they do not mutate any resources.
var azureActivityExcludeOperations = []string{
"Microsoft.ContainerService/managedClusters/listClusterAdminCredential/action",
Copy link
Member

Choose a reason for hiding this comment

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

These should probably be exclusions at the crd level

Copy link
Member Author

Choose a reason for hiding this comment

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

hmm not sure. I only added these two in particular for debugging reasons but then kept it.
How would end users get the list of operations though? I couldn't find the list.

Still I have implemented this.

Copy link
Member

Choose a reason for hiding this comment

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

It would normally by seeing lots of changes they are not interested in, and then adding them to the exclusions

scrapers/azure/azure.go Outdated Show resolved Hide resolved
@adityathebe adityathebe force-pushed the feat/azure-activity-log branch from a27a851 to fe47ed7 Compare December 7, 2023 08:51
@adityathebe adityathebe requested a review from moshloop December 7, 2023 08:53
@moshloop moshloop merged commit 6f26eb5 into main Dec 7, 2023
7 checks passed
Copy link

github-actions bot commented Dec 7, 2023

🎉 This PR is included in version 0.0.154 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@adityathebe adityathebe deleted the feat/azure-activity-log branch December 11, 2023 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Azure activity log
2 participants