Azure Vm Memory Monitor
说明
示例:使用Azure CLI查询Windows内存信息
GET GET https://management.azure.com/{resourceUri}/providers/microsoft.insights/metricNamespaces?api-version=2017-12-01-preview
# 参考文档
# https://docs.microsoft.com/en-us/rest/api/monitor/metricnamespaces/listaz monitor metrics list --resource /subscriptions/5fb605ab-c16c-4184-8a02-fee38cc11b8c/resourceGroups/xiangliu_csa/providers/Microsoft.Compute/virtualMachines/win-ad --start-time 2020-05-21T06:10:00Z --end-time 2020-05-21T10:00:00Z --interval PT1M --namespace 'Azure.VM.Windows.GuestMetrics' --metric 'Memory\Available Bytes'示例:使用Azure CLI查询Linux指标
# namespace 也可以通过REST API获得,也可以直接查看azure portal上的名字
az monitor metrics list --resource /subscriptions/5fb605ab-c16c-4184-8a02-fee38cc11b8c/resourceGroups/xiangliu_csa/providers/Microsoft.Compute/virtualMachines/xiangliu-shadowsocks --start-time 2020-05-21T06:10:00Z --end-time 2020-05-21T10:00:00Z --interval PT1M --namespace 'telegraf/mem' --metric 'Available'有关为何Azure默认无内存和磁盘等监控指标,以及为何自定义指标收费的解释
Last updated