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 metrics collection from cost explorer into aws/billing metricset #20527

Merged
merged 23 commits into from
Sep 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
5784013
Add cost metricset for aws module
kaiyan-sheng Aug 10, 2020
a040139
Add GroupBy into GetCostAndUsage API
kaiyan-sheng Aug 12, 2020
7099bc6
add cost data collection per availability zone
kaiyan-sheng Aug 12, 2020
68c20f7
add cost explorer metrics into existing billing metricset
kaiyan-sheng Aug 12, 2020
92b88bf
Add cost_explorer_config for billing metricset with group_by_dimensio…
kaiyan-sheng Aug 13, 2020
d575461
run go mod tidy
kaiyan-sheng Aug 14, 2020
90aadfc
Merge remote-tracking branch 'upstream/master' into aws_cost_metricset
kaiyan-sheng Aug 14, 2020
182082b
Merge remote-tracking branch 'upstream/master' into aws_cost_metricset
kaiyan-sheng Aug 23, 2020
13b84d7
update fields.go
kaiyan-sheng Aug 23, 2020
35725bd
Update AWS billing dashboard
kaiyan-sheng Aug 25, 2020
2797250
update changelog
kaiyan-sheng Aug 25, 2020
e8d939b
update billing dashboard to use lens in several visualizations
kaiyan-sheng Aug 25, 2020
8eed6b2
Merge remote-tracking branch 'upstream/master' into aws_cost_metricset
kaiyan-sheng Aug 25, 2020
1393d6b
update image with new dashboard
kaiyan-sheng Aug 25, 2020
580e582
Merge remote-tracking branch 'upstream/master' into aws_cost_metricset
kaiyan-sheng Aug 26, 2020
e620191
Merge remote-tracking branch 'upstream/master' into aws_cost_metricset
kaiyan-sheng Aug 27, 2020
9f2d3ea
Merge remote-tracking branch 'upstream/master' into aws_cost_metricset
kaiyan-sheng Sep 1, 2020
96a3e64
Merge remote-tracking branch 'upstream/master' into aws_cost_metricset
kaiyan-sheng Sep 2, 2020
ef82815
Merge remote-tracking branch 'upstream/master' into aws_cost_metricset
kaiyan-sheng Sep 3, 2020
4a5cb68
add documentation for group_by_dimension_keys and group_by_tag_keys
kaiyan-sheng Sep 14, 2020
b811cee
Merge remote-tracking branch 'upstream/master' into aws_cost_metricset
kaiyan-sheng Sep 14, 2020
229ec85
remove [Metricbeat AWS] from lens visualization
kaiyan-sheng Sep 14, 2020
808f236
create unique eventID to prevent duplicate events in same day
kaiyan-sheng Sep 14, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- Add state_daemonset metricset for Kubernetes Metricbeat module {pull}20649[20649]
- Add host inventory metrics to azure compute_vm metricset. {pull}20641[20641]
- Add host inventory metrics to googlecloud compute metricset. {pull}20391[20391]
- Add billing data collection from Cost Explorer into aws billing metricset. {pull}20527[20527] {issue}20103[20103]
- Migrate `compute_vm` metricset to a light one, map `cloud.instance.id` field. {pull}20889[20889]
- Request prometheus endpoints to be gzipped by default {pull}20766[20766]
- Release all kubernetes `state` metricsets as GA {pull}20901[20901]
Expand Down
163 changes: 161 additions & 2 deletions metricbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -1569,8 +1569,7 @@ type: object




*`aws.billing.metrics.EstimatedCharges.max`*::
*`aws.billing.EstimatedCharges`*::
+
--
Maximum estimated charges for AWS acccount.
Expand All @@ -1579,6 +1578,166 @@ type: long

--

*`aws.billing.Currency`*::
+
--
Estimated charges currency unit.

type: keyword

--

*`aws.billing.ServiceName`*::
+
--
Service name for the maximum estimated charges.

type: keyword

--


*`aws.billing.AmortizedCost.amount`*::
+
--
Amortized cost amount

type: double

--

*`aws.billing.AmortizedCost.unit`*::
+
--
Amortized cost unit

type: keyword

--


*`aws.billing.BlendedCost.amount`*::
+
--
Blended cost amount

type: double

--

*`aws.billing.BlendedCost.unit`*::
+
--
Blended cost unit

type: keyword

--


*`aws.billing.NormalizedUsageAmount.amount`*::
+
--
Normalized usage amount

type: double

--

*`aws.billing.NormalizedUsageAmount.unit`*::
+
--
Normalized usage amount unit

type: keyword

--


*`aws.billing.UnblendedCost.amount`*::
+
--
Unblended cost amount

type: double

--

*`aws.billing.UnblendedCost.unit`*::
kaiyan-sheng marked this conversation as resolved.
Show resolved Hide resolved
+
--
Unblended cost unit

type: keyword

--


*`aws.billing.UsageQuantity.amount`*::
+
--
Usage quantity amount

type: double

--

*`aws.billing.UsageQuantity.unit`*::
+
--
Usage quantity unit

type: keyword

--

*`aws.billing.start_date`*::
+
--
Start date for retrieving AWS costs

type: keyword

--

*`aws.billing.end_date`*::
+
--
End date for retrieving AWS costs

type: keyword

--


*`aws.billing.group_definition.key`*::
+
--
The string that represents a key for a specified group

type: keyword

--

*`aws.billing.group_definition.type`*::
+
--
The string that represents the type of group

type: keyword

--

*`aws.billing.group_by.*`*::
+
--
Cost explorer group by key values


type: object

--

[float]
=== cloudwatch

Expand Down
Binary file modified metricbeat/docs/images/metricbeat-aws-billing-overview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions x-pack/metricbeat/include/list.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 8 additions & 3 deletions x-pack/metricbeat/module/aws/_meta/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,16 @@
- sns
- sqs
- module: aws
period: 12h
period: 24h
metricsets:
- billing
regions:
- us-east-1
cost_explorer_config:
group_by_dimension_keys:
kaiyan-sheng marked this conversation as resolved.
Show resolved Hide resolved
- "AZ"
- "INSTANCE_TYPE"
- "SERVICE"
# group_by_tag_keys:
kaiyan-sheng marked this conversation as resolved.
Show resolved Hide resolved
# - "aws:createdBy"
- module: aws
period: 24h
metricsets:
Expand Down
Loading