《Windows Azure Platform 系列文章目录

 

  我们使用Azure Monitor监控Azure虚拟机的时候,除了使用平台提供的监控指标以外,还可能需要自定义指标。

  比如我们在监控Azure虚拟机磁盘的时候,只能监控到所有的磁盘信息。在某些时候,还需要自定义设置某些虚拟机磁盘的监控指标,如只针对D盘进行监控。

  在这里我简单介绍一下。

  1.我们在虚拟机页面里,开启诊断设置

  Azure Monitor (3) 对虚拟机磁盘设置自定义监控
    




Windows Azure Platform 系列文章目录

 

  2.启用后,远程登录到虚拟机,确认需要监控的磁盘。我们假设在D盘

  Azure Monitor (3) 对虚拟机磁盘设置自定义监控
    




Windows Azure Platform 系列文章目录

 

  3.打开performance counter添加counter确定格式,可以将读写分开,也可以只看Disk Bytes/sec这个总量值:

  Azure Monitor (3) 对虚拟机磁盘设置自定义监控
    




Windows Azure Platform 系列文章目录

 

  记录生成的counter格式

  Azure Monitor (3) 对虚拟机磁盘设置自定义监控
    




Windows Azure Platform 系列文章目录

 

  4.回到Azure门户添加自定义metrics后保存

  \PhysicalDisk(1 D:)\Disk Read Bytes/sec
  \PhysicalDisk(1 D:)\Disk Write Bytes/sec
  或 \PhysicalDisk(1 D:)\Disk Bytes/sec

  Azure Monitor (3) 对虚拟机磁盘设置自定义监控
    




Windows Azure Platform 系列文章目录

 

  5.来到Metrics选项下,按照示例添加

  Azure Monitor (3) 对虚拟机磁盘设置自定义监控
    




Windows Azure Platform 系列文章目录

 

  效果如下:

  Azure Monitor (3) 对虚拟机磁盘设置自定义监控
    




Windows Azure Platform 系列文章目录

 

相关文章:

  • 2022-01-19
  • 2022-02-08
  • 2022-01-29
  • 2021-06-24
  • 2021-06-27
  • 2022-01-14
  • 2021-06-26
  • 2021-08-09
猜你喜欢
  • 2022-02-20
  • 2021-10-06
  • 2021-06-28
  • 2021-09-16
  • 2021-10-04
  • 2021-05-31
  • 2021-06-07
相关资源
相似解决方案