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
[Azure] [Billing] Add Azure resource tags from Usage Details API #36428
Conversation
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
I added a simple mapping of tag values from legacy (EA) and modern (MCA) billing account types. I added a few tags to Azure resources, but I am not getting those tags from Usage Details API; I would like to know if this kind of data needs some time to propagate across Azure systems. I am waiting some time before trying again. |
149fc56
to
f066926
Compare
cde009c
to
7445190
Compare
Both legacy and modern data formats support resource tags.
The Azure module already has an existing mapping for the `azure.resource.tags` field.
7445190
to
2f5365a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good!
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
Removed the backport labels: I prefer to merge now and take some time and think about if and which version backport to. |
) * Add resource tags from Usage Details API Both legacy and modern data formats support resource tags. * Store tags in the azure.resource.tags field The Azure module already has an existing mapping for the `azure.resource.tags` field. * Add a unit test to check the tags field mapping * Update changelog --------- Co-authored-by: muthu-mps <101238137+muthu-mps@users.noreply.github.com> (cherry picked from commit 55edac5)
) * Add resource tags from Usage Details API Both legacy and modern data formats support resource tags. * Store tags in the azure.resource.tags field The Azure module already has an existing mapping for the `azure.resource.tags` field. * Add a unit test to check the tags field mapping * Update changelog --------- Co-authored-by: muthu-mps <101238137+muthu-mps@users.noreply.github.com> (cherry picked from commit 55edac5)
Since the Azure module already includes mapping for |
… Usage Details API (#36463) * [Azure] [Billing] Add Azure resource tags from Usage Details API (#36428) * Add resource tags from Usage Details API Both legacy and modern data formats support resource tags. * Store tags in the azure.resource.tags field The Azure module already has an existing mapping for the `azure.resource.tags` field. * Add a unit test to check the tags field mapping * Update changelog --------- Co-authored-by: muthu-mps <101238137+muthu-mps@users.noreply.github.com> (cherry picked from commit 55edac5) * Remove extra changelog comments --------- Co-authored-by: Maurizio Branca <maurizio.branca@elastic.co>
) (#36464) * Add resource tags from Usage Details API Both legacy and modern data formats support resource tags. * Store tags in the azure.resource.tags field The Azure module already has an existing mapping for the `azure.resource.tags` field. * Add a unit test to check the tags field mapping * Update changelog --------- Co-authored-by: muthu-mps <101238137+muthu-mps@users.noreply.github.com> (cherry picked from commit 55edac5) Co-authored-by: Maurizio Branca <maurizio.branca@elastic.co>
…stic#36428) * Add resource tags from Usage Details API Both legacy and modern data formats support resource tags. * Store tags in the azure.resource.tags field The Azure module already has an existing mapping for the `azure.resource.tags` field. * Add a unit test to check the tags field mapping * Update changelog --------- Co-authored-by: muthu-mps <101238137+muthu-mps@users.noreply.github.com>
Proposed commit message
With this change, we are adding support for Azure resource tags from the response from the Usage Details API. Both legacy and modern usage details data formats include tags from resources.
We take tag values from the usage details response and store them in the event as
azure.resource.tags
field. We can leverage the existing module level mapping for these field.Multiple users asked for including resource tags to make the most of usage details data.
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Author's Checklist
How to test this PR locally
Related issues
Use cases
Screenshots
Logs