我在AWS上有一个基于Windows的i3.large EC2实例,带有450GB NVMe驱动器。我想设置对NVMe存储的监视,以便无需RDP进入服务器就可以看到我们的利用率。 CloudWatch似乎没有将磁盘使用率作为指标。反正有这样做吗?
答案 0 :(得分:1)
AWS无权访问您的实例来收集磁盘利用率指标(或无磁盘指标),因此您需要在实例中安装CloudWatch Agent。
您可以install the the CloudWatch Agent manually or with Systems Manager agent。可以从以下位置手动下载:
mybutton
(需要定义一个实例角色并将其与实例相关联,以允许代理将指标发布到CloudWatch。有关此操作,请参见文档。)
Windows上的CloudWatch Agent documentation about collected metrics说:
在运行Windows Server的服务器上,安装CloudWatch代理 使您可以收集与计数器相关的指标 Windows性能监视器。这些的CloudWatch指标名称 计数器是通过在对象名称和 柜台名称。例如, 为处理器对象提供度量标准名称“处理器%中断时间” 在CloudWatch中。有关Windows性能监视器的更多信息 计数器,请参阅Microsoft Windows Server文档。
快速搜索有关Windows Performance Monitors的信息,使我们进入有关disk performance metrics的TechNet博客文章:
可用空间百分比在页面上显示总可用空间的百分比 选择了可用的逻辑磁盘。
在CloudWatch Agent manual configuration documentation中,您可以找到Windows部分,您可以在其中查看如何定义性能监视器计数器。我添加了一个带有https://s3.amazonaws.com/amazoncloudwatch-agent/windows/amd64/latest/amazon-cloudwatch-agent.msi
指标的代码段:
DISK_FREE