Skip to content

Commit

Permalink
Fix for azure billing dashboard (elastic#25554)
Browse files Browse the repository at this point in the history
* add field back

* changelog

(cherry picked from commit 5e084a7)
  • Loading branch information
narph committed May 6, 2021
1 parent 712398e commit 87c4ad3
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- Accept text/plain type by default for prometheus client scraping. {pull}24622[24622]
- Use working set bytes to calculate the pod memory limit pct when memory usage is not reported (ie. Windows pods). {pull}25428[25428]
- Fix copy-paste error in libbeat docs. {pull}25448[25448]
- Fix azure billing dashboard. {pull}25554[25554]

*Packetbeat*

Expand Down
10 changes: 10 additions & 0 deletions metricbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -5176,6 +5176,16 @@ The resource specified
The type of the resource


type: keyword

--

*`azure.resource.name`*::
+
--
The name of the resource


type: keyword

--
Expand Down
4 changes: 4 additions & 0 deletions x-pack/metricbeat/module/azure/_meta/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
type: keyword
description: >
The type of the resource
- name: name
type: keyword
description: >
The name of the resource
- name: group
type: keyword
description: >
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@
"line_width": 2,
"metrics": [
{
"field": "azure.storage.usedcapacity.avg",
"field": "azure.storage.used_capacity.avg",
"id": "61fb4192-32e4-11ea-b9f8-4d0b340ad993",
"type": "avg"
}
Expand Down Expand Up @@ -1138,7 +1138,7 @@
"line_width": 2,
"metrics": [
{
"field": "azure.storage.usedcapacity.avg",
"field": "azure.storage.used_capacity.avg",
"id": "61fb4192-32e4-11ea-b9f8-4d0b340ad993",
"type": "avg"
}
Expand Down
1 change: 1 addition & 0 deletions x-pack/metricbeat/module/azure/billing/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ func EventsMapping(results Usage) []mb.Event {
"resource": common.MapStr{
"type": usageDetail.ConsumedService,
"group": getResourceGroupFromId(*usageDetail.InstanceID),
"name": usageDetail.InstanceName,
},
"subscription_id": usageDetail.SubscriptionGUID,
},
Expand Down
2 changes: 1 addition & 1 deletion x-pack/metricbeat/module/azure/fields.go

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

0 comments on commit 87c4ad3

Please sign in to comment.