- Package Name: azure-monitor-query
- Package Version: 1.0.0
- Operating System: Mac OS 11.4
- Python Version: 3.9.7
Describe the bug
I am trying to get the eventhub namespace metrics split by the eventhub name. Therefore I am using * as the filter value: entityname eq '*'.
The returned data is indeed split by the entity name. However there is no metadata provided. So I am not able to understand
what entities the values belong too.
To Reproduce
I am using this code:
metrics_uri = os.environ['METRICS_RESOURCE_URI']
response = client.query_resource(
metrics_uri,
metric_names=["IncomingMessages"],
timespan=timedelta(days=1),
granularity=timedelta(hours=24),
filter="entityname eq '*'",
aggregation='Total'
)
for metric in response.metrics:
print(metric.name + ' -- ' + metric.display_description)
for time_series_element in metric.timeseries:
print(f"Metadata {time_series_element.metadata_values}")
for metric_value in time_series_element.data:
print(f"{metric_value.timestamp} -- {metric_value.total}")
METRICS_RESOURCE_URI is the the eventhub namespace.
Expected behavior
Metadata is returned and contains the name of the event hub.
Screenshots
Here is the output from the above code

Additional context
The metadata is returned correctly with Azure CLI
Describe the bug
I am trying to get the eventhub namespace metrics split by the eventhub name. Therefore I am using
*as the filter value:entityname eq '*'.The returned data is indeed split by the entity name. However there is no metadata provided. So I am not able to understand
what entities the values belong too.
To Reproduce
I am using this code:
METRICS_RESOURCE_URIis the the eventhub namespace.Expected behavior
Metadata is returned and contains the name of the event hub.
Screenshots
Here is the output from the above code
Additional context
The metadata is returned correctly with Azure CLI