You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds a new `default_timegrain` configuration option to allow users to customize the timegrain used in the Storage Account metricset. The default value remains PT5M, but users can now choose a different value.
Without this option, users can only collect metrics with a PT5M time grain. It is a sensible default, but some users want to collect metrics with a PT1M time grain.
To learn more, see elastic/integrations#15464.
(cherry picked from commit 8f145b9)
Co-authored-by: Maurizio Branca <[email protected]>
Copy file name to clipboardExpand all lines: CHANGELOG.next.asciidoc
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -260,6 +260,15 @@ https://github.com/elastic/beats/compare/v8.8.1\...main[Check the HEAD diff]
260
260
- Add new metricset network for the vSphere module. {pull}40559[40559]
261
261
- Add new metricset resourcepool for the vSphere module. {pull}40456[40456]
262
262
- Add new metrics to vSphere Virtual Machine dataset (CPU usage percentage, disk average usage, disk read/write rate, number of disk reads/writes, memory usage percentage). {pull}44205[44205]
263
+
- Added checks for the Resty response object in all Meraki module API calls to ensure proper handling of nil responses. {pull}44193[44193]
264
+
- Add latency config option to Azure Monitor module. {pull}44366[44366]
265
+
- Increase default polling period for MongoDB module from 10s to 60s {pull}44781[44781]
266
+
- Upgrade github.com/microsoft/go-mssqldb from v1.7.2 to v1.8.2 {pull}44990[44990]
267
+
- Add SSL support for sql module: drivers mysql, postgres, and mssql. {pull}44748[44748]
268
+
- Add support for Kafka 4.0 in the Kafka module. {pull}44723[44723]
269
+
- Add NTP response validation for system/ntp module. {pull}46184[46184]
270
+
- Add vertexai_logs metricset to GCP for prompt response collection from VertexAI service. {pull}46383[46383]
271
+
- Add default timegrain to Azure Storage Account metricset. {pull}46786[46786]
@@ -22,7 +21,6 @@ This metricset allows users to retrieve all metrics from specified storage accou
22
21
`resources`
23
22
: This will contain all options for identifying resources and configuring the desired metrics
24
23
25
-
26
24
### Config options to identify resources [_config_options_to_identify_resources_11]
27
25
28
26
`resource_id`
@@ -42,12 +40,61 @@ resources:
42
40
service_type: ["queue", "file"]
43
41
```
44
42
45
-
it will filter the metric values to be returned by specific metric namespaces. The supported metrics and namespaces can be found here [https://docs.microsoft.com/en-us/azure/azure-monitor/platform/metrics-supported#microsoftstoragestorageaccounts](https://docs.microsoft.com/en-us/azure/azure-monitor/platform/metrics-supported#microsoftstoragestorageaccounts). The service type values allowed are `blob`, `table`, `queue`, `file` based on the namespaces `Microsoft.Storage/storageAccounts/blobServices`,`Microsoft.Storage/storageAccounts/tableServices`,`Microsoft.Storage/storageAccounts/fileServices`,`Microsoft.Storage/storageAccounts/queueServices`. If no service_type is specified all values are applied.
43
+
It will filter the metric values to be returned by specific metric namespaces. The supported metrics and namespaces can be found here [https://docs.microsoft.com/en-us/azure/azure-monitor/platform/metrics-supported#microsoftstoragestorageaccounts](https://docs.microsoft.com/en-us/azure/azure-monitor/platform/metrics-supported#microsoftstoragestorageaccounts). The service type values allowed are `blob`, `table`, `queue`, `file` based on the namespaces `Microsoft.Storage/storageAccounts/blobServices`,`Microsoft.Storage/storageAccounts/tableServices`,`Microsoft.Storage/storageAccounts/fileServices`,`Microsoft.Storage/storageAccounts/queueServices`. If no service_type is specified all values are applied.
46
44
47
45
Also, if the `resources` option is not specified, then all the storage accounts from the entire subscription will be selected. The primary aggregation value will be retrieved for all the metrics contained in the namespaces. The aggregation options are `avg`, `sum`, `min`, `max`, `total`, `count`.
48
46
49
47
A default non configurable timegrain of 5 min is set so users are advised to configure an interval of 300s or a multiply of it.
50
48
49
+
`default_timegrain`:
50
+
: (*string*) Sets the default time grain to use when collecting storage account metrics. Defaults to PT5M.
51
+
52
+
To collect storage account metrics with a PT1M time grain, we recommend using one of the following configurations:
53
+
54
+
```yaml
55
+
# (1) With `period: 60s` and `default_timegrain: "PT1M"`, the metricset
56
+
# collects 1 data point every 60s.
57
+
- module: azure
58
+
metricsets:
59
+
- storage
60
+
enabled: true
61
+
period: 60s
62
+
client_id: '${AZURE_CLIENT_ID:""}'
63
+
client_secret: '${AZURE_CLIENT_SECRET:""}'
64
+
tenant_id: '${AZURE_TENANT_ID:""}'
65
+
subscription_id: '${AZURE_SUBSCRIPTION_ID:""}'
66
+
refresh_list_interval: 3600s# 1h
67
+
enable_batch_api: true
68
+
default_timegrain: "PT1M"
69
+
```
70
+
71
+
```yaml
72
+
# (2) With `period: 300s` and `default_timegrain: "PT1M"`, the metricset
73
+
# collects 5 data points every 300s (5 minutes) — one for each minute,
74
+
# but all data points arrive after 5 minutes
75
+
- module: azure
76
+
metricsets:
77
+
- storage
78
+
enabled: true
79
+
period: 300s
80
+
client_id: '${AZURE_CLIENT_ID:""}'
81
+
client_secret: '${AZURE_CLIENT_SECRET:""}'
82
+
tenant_id: '${AZURE_TENANT_ID:""}'
83
+
subscription_id: '${AZURE_SUBSCRIPTION_ID:""}'
84
+
refresh_list_interval: 3600s# 1h
85
+
enable_batch_api: true
86
+
default_timegrain: "PT1M"
87
+
```
88
+
89
+
These two configurations trade off scalability and freshness. Configuration (1) prioritizes freshness over scalability, while configuration (2) prioritizes scalability over freshness.
90
+
91
+
Suggested changes:
92
+
93
+
- `enable_batch_api: true`: Retrieves metric values for multiple Azure resources in one API call, supporting more storage accounts.
94
+
- `refresh_list_interval: 3600s`: Looks for new storage accounts every 60 minutes instead of 10 minutes, helping to avoid or reduce gaps when monitoring many storage accounts.
95
+
96
+
Note: By setting the collection `period: 1m`, the metricset only has 60s to collect all metric values instead of 300s, so it can handle fewer storage accounts. Keep in mind that the storage accounts metricset collects metrics for five different namespaces (storage account, blob, file, queue, and table).
97
+
51
98
## Fields [_fields]
52
99
53
100
For a description of each field in the metricset, see the [exported fields](/reference/metricbeat/exported-fields-azure.md) section.
@@ -11,7 +10,6 @@ This metricset allows users to retrieve all metrics from specified storage accou
11
10
`resources`
12
11
: This will contain all options for identifying resources and configuring the desired metrics
13
12
14
-
15
13
### Config options to identify resources [_config_options_to_identify_resources_11]
16
14
17
15
`resource_id`
@@ -31,8 +29,57 @@ resources:
31
29
service_type: ["queue", "file"]
32
30
```
33
31
34
-
it will filter the metric values to be returned by specific metric namespaces. The supported metrics and namespaces can be found here [https://docs.microsoft.com/en-us/azure/azure-monitor/platform/metrics-supported#microsoftstoragestorageaccounts](https://docs.microsoft.com/en-us/azure/azure-monitor/platform/metrics-supported#microsoftstoragestorageaccounts). The service type values allowed are `blob`, `table`, `queue`, `file` based on the namespaces `Microsoft.Storage/storageAccounts/blobServices`,`Microsoft.Storage/storageAccounts/tableServices`,`Microsoft.Storage/storageAccounts/fileServices`,`Microsoft.Storage/storageAccounts/queueServices`. If no service_type is specified all values are applied.
32
+
It will filter the metric values to be returned by specific metric namespaces. The supported metrics and namespaces can be found here [https://docs.microsoft.com/en-us/azure/azure-monitor/platform/metrics-supported#microsoftstoragestorageaccounts](https://docs.microsoft.com/en-us/azure/azure-monitor/platform/metrics-supported#microsoftstoragestorageaccounts). The service type values allowed are `blob`, `table`, `queue`, `file` based on the namespaces `Microsoft.Storage/storageAccounts/blobServices`,`Microsoft.Storage/storageAccounts/tableServices`,`Microsoft.Storage/storageAccounts/fileServices`,`Microsoft.Storage/storageAccounts/queueServices`. If no service_type is specified all values are applied.
35
33
36
34
Also, if the `resources` option is not specified, then all the storage accounts from the entire subscription will be selected. The primary aggregation value will be retrieved for all the metrics contained in the namespaces. The aggregation options are `avg`, `sum`, `min`, `max`, `total`, `count`.
37
35
38
36
A default non configurable timegrain of 5 min is set so users are advised to configure an interval of 300s or a multiply of it.
37
+
38
+
`default_timegrain`:
39
+
: (*string*) Sets the default time grain to use when collecting storage account metrics. Defaults to PT5M.
40
+
41
+
To collect storage account metrics with a PT1M time grain, we recommend using one of the following configurations:
42
+
43
+
```yaml
44
+
# (1) With `period: 60s` and `default_timegrain: "PT1M"`, the metricset
45
+
# collects 1 data point every 60s.
46
+
- module: azure
47
+
metricsets:
48
+
- storage
49
+
enabled: true
50
+
period: 60s
51
+
client_id: '${AZURE_CLIENT_ID:""}'
52
+
client_secret: '${AZURE_CLIENT_SECRET:""}'
53
+
tenant_id: '${AZURE_TENANT_ID:""}'
54
+
subscription_id: '${AZURE_SUBSCRIPTION_ID:""}'
55
+
refresh_list_interval: 3600s# 1h
56
+
enable_batch_api: true
57
+
default_timegrain: "PT1M"
58
+
```
59
+
60
+
```yaml
61
+
# (2) With `period: 300s` and `default_timegrain: "PT1M"`, the metricset
62
+
# collects 5 data points every 300s (5 minutes) — one for each minute,
63
+
# but all data points arrive after 5 minutes
64
+
- module: azure
65
+
metricsets:
66
+
- storage
67
+
enabled: true
68
+
period: 300s
69
+
client_id: '${AZURE_CLIENT_ID:""}'
70
+
client_secret: '${AZURE_CLIENT_SECRET:""}'
71
+
tenant_id: '${AZURE_TENANT_ID:""}'
72
+
subscription_id: '${AZURE_SUBSCRIPTION_ID:""}'
73
+
refresh_list_interval: 3600s# 1h
74
+
enable_batch_api: true
75
+
default_timegrain: "PT1M"
76
+
```
77
+
78
+
These two configurations trade off scalability and freshness. Configuration (1) prioritizes freshness over scalability, while configuration (2) prioritizes scalability over freshness.
79
+
80
+
Suggested changes:
81
+
82
+
- `enable_batch_api: true`: Retrieves metric values for multiple Azure resources in one API call, supporting more storage accounts.
83
+
- `refresh_list_interval: 3600s`: Looks for new storage accounts every 60 minutes instead of 10 minutes, helping to avoid or reduce gaps when monitoring many storage accounts.
84
+
85
+
Note: By setting the collection `period: 1m`, the metricset only has 60s to collect all metric values instead of 300s, so it can handle fewer storage accounts. Keep in mind that the storage accounts metricset collects metrics for five different namespaces (storage account, blob, file, queue, and table).
0 commit comments