Skip to content

Commit

Permalink
Register storage_account as second name for storage metricset (el…
Browse files Browse the repository at this point in the history
…astic#28447)

* add storage

* changelog

* add fields
  • Loading branch information
narph authored and wiwen committed Nov 1, 2021
1 parent 31c15e1 commit 6cd6ae1
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -898,6 +898,7 @@ for a few releases. Please use other tools provided by Elastic to fetch data fro
- Move openmetrics module to oss. {pull}26561[26561]
- Add `gke` metricset collection to `gcp` module {pull}26824[26824]
- Added a new beta `enterprisesearch` module for Elastic Enterprise Search {pull}27549[27549]
- Register additional name for `storage` metricset in the azure module. {pull}28447[28447]

*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 @@ -6203,6 +6203,16 @@ monitor
storage account


type: object

--

*`azure.storage_account.*.*`*::
+
--
storage account


type: object

--
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.

7 changes: 7 additions & 0 deletions x-pack/metricbeat/module/azure/storage/_meta/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,10 @@
object_type_mapping_type: "*"
description: >
storage account
- name: storage_account.*.*
release: ga
type: object
object_type: float
object_type_mapping_type: "*"
description: >
storage account
1 change: 1 addition & 0 deletions x-pack/metricbeat/module/azure/storage/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ var (
// MetricSet has been created then Fetch will begin to be called periodically.
func init() {
mb.Registry.MustAddMetricSet("azure", "storage", New)
mb.Registry.MustAddMetricSet("azure", "storage_account", New)
}

// MetricSet holds any configuration or state information. It must implement
Expand Down

0 comments on commit 6cd6ae1

Please sign in to comment.