-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[Metricbeat] AWS Billing Module accept pairs of group_by values #34193
Comments
Definitely agree that there is room for improvement around the AWS billing module, recently started poking around at it, and noticed the same issues when trying to analyze the various group_by dimensions. The interesting thing I found, if you set a standard group by dimension (ex: LINKED_ACCOUNT) and then a tag group by dimension, the module will have both group_bys on the document. The one issue with relying on the tag groups, is that tags aren't guaranteed by AWS to be available in on billing events, and even then it puts more onus on the user to set and use billing tags. Having the ability to use to "standard" group_by fields would be ideal. |
One thing I did consider was potentially use Elasticsearch transforms to repivot this data into something more usable, but haven't gotten around to experimenting with it yet. |
Yeah, I think defaulting to having the tag group_by is what causes the issue. I don't think you can pivot the data unless you query it with multiple dimensions in the first place. Since that's the only way to get details such as "Total ec2 usage for account foo" as that requires two dimensions to get that specific data back. I think letting the user give a pair of group_by options of either type is the most flexible. Then they can do 1 dimension, 1 tag like now, or 2 dimensions, or even 2 tags. Really nice would be a list of pairs, and then we just iterate through each pair. |
Pinging @elastic/integrations (Team:Integrations) |
Hi! We're labeling this issue as |
Hello we would also value the ability to search on multiple group_by dimensions in order to retrieve more granular info on service usages per account when pulling data from a consolidated management account. We have raised feature request internally with Elastic. Thanks, |
Currently the AWS billing module takes in an arbitrary number of group_by dimensions. However it uses each one individually pairing it with a group_by tag. Not having multi dimension search makes the data for consolidated billing much less useful.
For example,
If you have 10 accounts and you scan your management account with LINKED_ACCOUNT and SERVICES dimensions.
With the current AWS Billing Module, you'll get two sets of documents.
This means that you cannot drill into how much usage each account had by service.
Ideally the module would accept pairs of group_by values. If you pass those same two group_by dimensions to the api together you get one document per account per service, which allows much deeper filtering.
There are some more details here.
The text was updated successfully, but these errors were encountered: