Skip to content

Commit f23f05a

Browse files
author
kaiyan-sheng
authored
Change cloud.provider from googlecloud to gcp in billing metricset (#22287)
1 parent 2ad0b88 commit f23f05a

2 files changed

Lines changed: 6 additions & 10 deletions

File tree

x-pack/metricbeat/module/googlecloud/billing/_meta/data.json

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
{
22
"@timestamp": "2017-10-12T08:05:34.853Z",
3-
"cloud": {
4-
"account": {
5-
"id": "elastic-bi",
6-
"name": "elastic-bi"
7-
},
8-
"provider": "googlecloud"
9-
},
3+
"cloud.account.id": "elastic-bi",
4+
"cloud.account.name": "elastic-bi",
5+
"cloud.provider": "gcp",
106
"event": {
117
"dataset": "googlecloud.billing",
128
"duration": 115000,
@@ -15,9 +11,9 @@
1511
"googlecloud": {
1612
"billing": {
1713
"cost_type": "regular",
18-
"invoice_month": "202008",
14+
"invoice_month": "202010",
1915
"project_id": "elastic-fin-bi",
20-
"total": 170.811692
16+
"total": 77.897328
2117
}
2218
},
2319
"metricset": {

x-pack/metricbeat/module/googlecloud/billing/billing.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ func createEvents(rowItems []bigquery.Value, accountID string) mb.Event {
278278
}
279279

280280
event.RootFields = common.MapStr{
281-
"cloud.provider": "googlecloud",
281+
"cloud.provider": "gcp",
282282
"cloud.account.id": accountID,
283283
"cloud.account.name": accountID,
284284
}

0 commit comments

Comments
 (0)