-
Notifications
You must be signed in to change notification settings - Fork 456
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Azure Storage Account] Add metric_type metadata to the storage_account datastream #7488
[Azure Storage Account] Add metric_type metadata to the storage_account datastream #7488
Conversation
🌐 Coverage report
|
|
||
- name: azure.storage_account | ||
type: group | ||
fields: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are not including:
IndexCapacity
from https://learn.microsoft.com/en-us/azure/azure-monitor/reference/supported-metrics/microsoft-classicstorage-storageaccounts-blobservices-metricsFileShareQuota
from https://learn.microsoft.com/en-us/azure/azure-monitor/reference/supported-metrics/microsoft-classicstorage-storageaccounts-fileservices-metrics
Is this intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, please forget the comment about IndexCapacity
, I could not find it but it's there. My Bad.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, this is surprising: how can FileShareQuota
field from the docs become file_share_capacity_quota
field in ES?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is being taken from here or sdk.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it, thanks.
I see we have two documents for Azure Files:
- Supported metrics for Microsoft.ClassicStorage/storageAccounts/fileServices (from the links in the PR description)
- Azure Files monitoring data reference
Since the first one mentions the "Microsoft.ClassicStorage/storageAccounts" namespace, this may mean this for the classic version of the Files service, the the second for the current / modern version.
Are we supporting metrics for the classic namespace?
We should also check if we need add some *IOPS*
related field in the current namespace doc, like:
FileShareMaxUsedIOPS
FileShareProvisionedIOPS
FileShareMaxUsedBandwidthMiBps
WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, my mistake! I referred to the classicStorage link instead of the correct one, which should be Microsoft.Storage/storageAccounts as this is the namespace we are supporting. To address this, I will update the metric_type mapping using the object type instead of the group format like this
- name: azure.storage_account.*.*
type: object
object_type: float
metric_type: gauge
object_type_mapping_type: "*"
description: >
storage account
This will ensure that all the fields within this namespace are correctly accounted for.
I didn't use this format before due to some issues associated with it. However, it seems those issues have been resolved, as I tested it successfully.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it! Thanks for the check!
I'm not an expert in TSDB, but this makes sense.
I updated the link in the PR description with the non-classic one; please take a look to double-check if it's the correct one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @zmoog!
packages/azure_metrics/data_stream/storage_account/fields/fields.yml
Outdated
Show resolved
Hide resolved
/test |
Package azure_metrics - 1.1.1 containing this change is available at https://epr.elastic.co/search?package=azure_metrics |
What does this PR do?
This PR use predefined metrics and adds metric_type metadata to the storage_account datastream for all of these services, descriptions are also taken from here:
StorageAccount
BlobServices
FileServices
QueueServices
TableServices
Checklist
changelog.yml
file.Related issues
Screenshots