问题
I have configured Diagnostic Settings and Insights to get the Custom Metrics. After configured, I get the Custom Metrics Namespace and Metrics also display the data.
But when I try to fetch the same metric data using the Azure Monitor REST API (https://docs.microsoft.com/en-us/rest/api/monitor/metrics/list) then I'm unable to fetch data because "Custom metric Namespace and Metric name" are not available for Linux Virtual Machine.
Example for Windows VM: Metric Namespace for Windows VM: "Azure.VM.Windows.GuestMetrics" Metric Name: "Memory\% Committed Bytes In Use" So I can fetch custom metrics data for Windows Virtual Machine using the above metric namespace and metric name.
I want to fetch custom metrics data like: Memory used, Logical Disk Performance for linux virtual machine. Please help me to get out of this issue.
How to get custom metrics data for linux virtual machine using REST API or Nodejs SDK?
来源:https://stackoverflow.com/questions/65088609/not-able-to-fetch-custom-metrics-for-azure-linux-virtual-machine-using-azure-m