How Can I View My Disk Usage?

You can view your disk usages in either of the following ways:

Viewing Disk Usage in Linux

In this section, CentOS 7.4 64bit is used as an example. The details depend on if you need to view the available space or not.

Viewing Disk Usage in Windows Server 2008

In this section, Windows Server 2008 R2 Enterprise 64bit is used as an example.

  1. On the desktop of the server, right-click Computer and choose Manage from the shortcut menu.

    The Server Manager window is displayed.

  2. In the navigation tree on the left, choose Storage > Disk Management.

    The sizes and available spaces of the volumes on the current disk are displayed in the middle pane.

    Figure 1 Disk Management page

Viewing Disk Usage in Windows Server 2016

In this section, Windows Server 2016 Standard 64bit is used as an example.

  1. On the desktop of the server, click the start icon in the lower left corner.

    The Windows Server window is displayed.

  2. Click Server Manager.

    The Server Manager window is displayed.

    Figure 2 Server Manager page

  3. In the upper right corner, choose Tools > Computer Management.
  4. Choose Storage > Disk Management.

    In the middle pane, you can view the sizes and available spaces of the volumes on the disk.

    Figure 3 Disk list page

Installing Agent to View Disk Usage

Some disk monitoring metrics require that the agent to be installed.

Table 1 Disk metrics

Metric

Parameter

Description

Value Range

Monitored Object

Monitoring Period (Raw Data)

mountPointPrefix_disk_free

(Agent) Available Disk Space

Free space on the disks

Unit: GB

  • Linux: Run the df -h command to check the value in the Avail column. The path of the mount point prefix cannot exceed 64 characters. It must start with a letter, and contain only digits, letters, hyphens (-), dots (.), and swung dashes (~).

≥ 0

ECS

1 minute

mountPointPrefix_disk_total

(Agent) Disk Storage Capacity

Total space on the disks, including used and free

Unit: GB

  • Linux: Run the df -h command to check the value in the Size column.

    The path of the mount point prefix cannot exceed 64 characters. It must start with a letter, and contain only digits, letters, hyphens (-), dots (.), and swung dashes (~).

≥ 0

ECS

1 minute

mountPointPrefix_disk_used

(Agent) Used Disk Space

Used space on the disks

Unit: GB

  • Linux: Run the df -h command to check the value in the Used column. The path of the mount point prefix cannot exceed 64 characters. It must start with a letter, and contain only digits, letters, hyphens (-), dots (.), and swung dashes (~).

≥ 0

ECS

1 minute

mountPointPrefix_disk_usedPercent

(Agent) Disk Usage

Percentage of total disk space that is used, which is calculated as follows: Disk Usage = Used Disk Space/Disk Storage Capacity

Unit: percent

  • Linux: It is calculated as follows: Used/Size. The path of the mount point prefix cannot exceed 64 characters. It must start with a letter, and contain only digits, letters, hyphens (-), dots (.), and swung dashes (~).

0-100

ECS

1 minute