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

Add AWS Cost and Usage reports to Metricbeat #20103

Closed
stevewritescode opened this issue Jul 21, 2020 · 5 comments · Fixed by #20527
Closed

Add AWS Cost and Usage reports to Metricbeat #20103

stevewritescode opened this issue Jul 21, 2020 · 5 comments · Fixed by #20527
Assignees
Labels
Metricbeat Metricbeat Team:Platforms Label for the Integrations - Platforms team

Comments

@stevewritescode
Copy link

Describe the enhancement:
Create a Metricbeat module to import AWS cost and usage data, e.g. detailed billing information.

Describe a specific use case for the enhancement or feature:
The current AWS Billing Metricbeat module pulls in billing data from AWS. From what I can tell, the only data that's available through this module is EstimatedCharges since that's the only metric sent through AWS CloudWatch under AWS/Billing - I'd like to have rich billing information so that I can monitor AWS account usage in Elastic without needed to go log in to the AWS console cost explorer. Of course, once it's in Elastic then I can leverage all the visualization, ML, and alerting capabilities :)

I seen a few open-source projects that are built around this concept but none that use metricbeat. The AWS Go SDK supports costexplorer functions, so it would be natural to integrate with metricbeat the same way that the AWS Cloudwatch module works.

@stevewritescode stevewritescode added the Metricbeat Metricbeat label Jul 21, 2020
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Jul 21, 2020
@kaiyan-sheng kaiyan-sheng added the Team:Platforms Label for the Integrations - Platforms team label Jul 21, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations-platforms (Team:Platforms)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Jul 21, 2020
@kaiyan-sheng
Copy link
Contributor

Thank you @stevewritescode for creating this issue. Yes, billing metricset currently only collect EstimatedCharges from CloudWatch. I will look into costexplorer and let you know!

@kaiyan-sheng
Copy link
Contributor

Hi @stevewritescode , I started a draft PR on adding cost explorer billing metrics for AWS. Please feel free to comment on the PR. Event output examples are here: https://github.com/elastic/beats/pull/20527/files?file-filters%5B%5D=.json

@stevewritescode
Copy link
Author

Wanted to follow-up on this and let you know that I built 7.x branch and setup aws billing with the example steps in the PR, and I was able to see daily unblended costs by service, which is exactly what I wanted! I double checked with the AWS cost explorer console to make sure the numbers matched. Works great!

@kaiyan-sheng
Copy link
Contributor

😬 @stevewritescode That's awesome. Thank you for testing this!!!

@kaiyan-sheng kaiyan-sheng self-assigned this Sep 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Metricbeat Metricbeat Team:Platforms Label for the Integrations - Platforms team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants