Skip to content

Commit

Permalink
Azure storage metricset values not inside the metricset name (elastic…
Browse files Browse the repository at this point in the history
…#21845) (elastic#22004)

* mofidy doc

* fix

* changelog

(cherry picked from commit fa50a44)
  • Loading branch information
narph authored Oct 20, 2020
1 parent 2c745da commit 3d87dc9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@ field. You can revert this change by configuring tags for the module and omittin
- Fix retrieving resources by ID for the azure module. {pull}21711[21711] {issue}21707[21707]
- Use timestamp from CloudWatch API when creating events. {pull}21498[21498]
- Report the correct windows events for system/filesystem {pull}21758[21758]
- Fix azure storage event format. {pull}21845[21845]
- Fix panic in kubernetes autodiscover related to keystores {issue}21843[21843] {pull}21880[21880]

*Packetbeat*
Expand Down
2 changes: 2 additions & 0 deletions x-pack/metricbeat/module/azure/storage/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ func New(base mb.BaseMetricSet) (mb.MetricSet, error) {
if err != nil {
return nil, err
}
// set default resource type to indicate this is not the generic monitor metricset
ms.Client.Config.DefaultResourceType = defaultStorageAccountNamespace
// if no options are entered we will retrieve all the vm's from the entire subscription
if len(ms.Client.Config.Resources) == 0 {
ms.Client.Config.Resources = []azure.ResourceConfig{
Expand Down

0 comments on commit 3d87dc9

Please sign in to comment.