简体   繁体   English

AWS EC2:如何从仪表板检查磁盘大小和使用情况?

[英]AWS EC2: How to check disk size and usage from Dashboard?

I'm using Amazon Web Services and can see my EC2 instances in the dashboard.我正在使用 Amazon Web 服务,并且可以在仪表板中查看我的 EC2 实例。 I would like to see the size of the attached disk for each one and how much unused space I have left.我想查看每个附加磁盘的大小以及我还剩下多少未使用的空间 I know that I can ssh into each instance and run df if I wanted to.我知道我可以 ssh 进入每个实例并运行df如果我愿意。

How would I get this information through the EC2 dashboard ?我如何通过 EC2 仪表板获取这些信息

Here is the dashboard:这是仪表板:

在此处输入图像描述

It is not possible to see these metrics from this.无法从中看到这些指标。 They would instead be a custom metric against each EBS volume.相反,它们将是针对每个 EBS 卷的自定义指标。

Take a look at the CloudWatch agent that should be installed on your EC2: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Install-CloudWatch-Agent.html查看应该安装在您的 EC2 上的 CloudWatch 代理: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Install-CloudWatch-Agent.html

EC2 tools or the Management Console don't have that higher level of access to EBS volume (ie at the file system level) So, there is no way to determine how much data or free space is available within a volume from outside an OS, except by invoking a command within the OS where the volume is mounted. EC2 工具或管理控制台没有更高级别的 EBS 卷访问权限(即文件系统级别)因此,无法从操作系统外部确定卷内有多少可用数据或可用空间,除非在安装卷的操作系统中调用命令。

I found an answer for the first question: How to find the disk size from the dashboard .我找到了第一个问题的答案: How to find the disk size from the dashboard However, I can't figure out a way to get the disk's remaining unused space from this UI.但是,我想不出从这个 UI 中获取磁盘剩余未使用空间的方法。

  1. Click on instance点击实例

在此处输入图像描述

  1. Click on root device点击根设备

在此处输入图像描述

  1. Click on EBS volume ID单击 EBS 卷 ID

在此处输入图像描述

  1. See the disk size查看磁盘大小

在此处输入图像描述

If anyone can determine how to get unused disk space from the dashboard, please post your answer.如果有人可以确定如何从仪表板获取未使用的磁盘空间,请发布您的答案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM