Skip to content

Commit

Permalink
Change cloud.provider from googlecloud to gcp in billing metricset (e…
Browse files Browse the repository at this point in the history
…lastic#22287) (elastic#22312)

(cherry picked from commit f23f05a)
  • Loading branch information
kaiyan-sheng authored Oct 30, 2020
1 parent 172066a commit 66d99f7
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 66d99f7

Please sign in to comment.