Skip to content

Cannot be able to get Metric List #156

@mashirali

Description

@mashirali

I cannot be able to get a List of Metrics to be fetch via Python SDK.

This is the reference code i am following.
https://github.com/Azure-Samples/azure-samples-python-management/blob/main/samples/monitor/manage_metric_list.py

When running this code i am getting an error

File "/getRMetricsInfo.py", line 50, in
main()
File "/getRMetricsInfo.py", line 33, in main
result = monitor_client.metrics.list(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/lib/python3.11/site-packages/azure/core/tracing/decorator.py", line 105, in wrapper_use_tracer
return func(*args, **kwargs)

/lib/python3.11/site-packages/azure/mgmt/monitor/v2018_01_01/operations/_metrics_operations.py", line 218, in list
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
azure.core.exceptions.HttpResponseError: Operation returned an invalid status 'Not Implemented'

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions