From c43056fd8a4bb7fb740cee50ab3e2823866bd4c6 Mon Sep 17 00:00:00 2001 From: Mariana Dima Date: Tue, 20 Oct 2020 09:28:30 +0200 Subject: [PATCH] Azure storage metricset values not inside the metricset name (#21845) * mofidy doc * fix * changelog (cherry picked from commit fa50a44556a2c7d7f78855f98e12bf13848a0f9a) --- CHANGELOG.next.asciidoc | 1 + x-pack/metricbeat/module/azure/storage/storage.go | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.next.asciidoc b/CHANGELOG.next.asciidoc index 6ad8f489993..4acca9282de 100644 --- a/CHANGELOG.next.asciidoc +++ b/CHANGELOG.next.asciidoc @@ -417,6 +417,7 @@ field. You can revert this change by configuring tags for the module and omittin - Visualization title fixes in aws, azure and googlecloud compute dashboards. {pull}21098[21098] - 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* diff --git a/x-pack/metricbeat/module/azure/storage/storage.go b/x-pack/metricbeat/module/azure/storage/storage.go index 9f54871b319..4178b911d11 100644 --- a/x-pack/metricbeat/module/azure/storage/storage.go +++ b/x-pack/metricbeat/module/azure/storage/storage.go @@ -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{