Skip to content

Commit

Permalink
Change cloud.provider from googlecloud to gcp in billing metricset (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiyan-sheng authored Oct 30, 2020
1 parent 2ad0b88 commit f23f05a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
14 changes: 5 additions & 9 deletions x-pack/metricbeat/module/googlecloud/billing/_meta/data.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
{
"@timestamp": "2017-10-12T08:05:34.853Z",
"cloud": {
"account": {
"id": "elastic-bi",
"name": "elastic-bi"
},
"provider": "googlecloud"
},
"cloud.account.id": "elastic-bi",
"cloud.account.name": "elastic-bi",
"cloud.provider": "gcp",
"event": {
"dataset": "googlecloud.billing",
"duration": 115000,
Expand All @@ -15,9 +11,9 @@
"googlecloud": {
"billing": {
"cost_type": "regular",
"invoice_month": "202008",
"invoice_month": "202010",
"project_id": "elastic-fin-bi",
"total": 170.811692
"total": 77.897328
}
},
"metricset": {
Expand Down
2 changes: 1 addition & 1 deletion x-pack/metricbeat/module/googlecloud/billing/billing.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ func createEvents(rowItems []bigquery.Value, accountID string) mb.Event {
}

event.RootFields = common.MapStr{
"cloud.provider": "googlecloud",
"cloud.provider": "gcp",
"cloud.account.id": accountID,
"cloud.account.name": accountID,
}
Expand Down

0 comments on commit f23f05a

Please sign in to comment.