turbot/alicloud
steampipe plugin install alicloud

Table: alicloud_ecs_disk_metric_write_iops_hourly - Query Alibaba Cloud ECS Disk Metrics using SQL

Alibaba Cloud Elastic Compute Service (ECS) provides scalable, on-demand computing resources for secure, flexible, and efficient applications. ECS Disk Metrics is a feature within ECS that allows you to monitor and analyze disk performance and usage. It provides data such as read and write IOPS, throughput, and latency, which can be useful for capacity planning and troubleshooting.

Table Usage Guide

The alicloud_ecs_disk_metric_write_iops_hourly table provides insights into the hourly write IOPS of ECS disks in Alibaba Cloud. As a system administrator or a DevOps engineer, explore disk-specific details through this table, including write IOPS, which can be quite useful for performance tuning, capacity planning, and troubleshooting. Utilize it to uncover information about disk performance, such as identifying disks with high write operations, and the verification of disk usage patterns.

Examples

Basic info

Analyze the settings to understand the performance trends of your Alicloud Elastic Compute Service (ECS) disk. This query helps in monitoring the write operations per second, which is crucial for optimizing your disk's efficiency and managing workloads.

select
instance_id,
timestamp,
minimum,
maximum,
average
from
alicloud_ecs_disk_metric_write_iops_hourly
order by
instance_id,
timestamp;
select
instance_id,
timestamp,
minimum,
maximum,
average
from
alicloud_ecs_disk_metric_write_iops_hourly
order by
instance_id,
timestamp;

Intervals where operation exceed 1000 average write iops

Determine the instances where the average write operations per second exceeded 1000 in a given hour. This can help in identifying potential performance issues or heavy workloads on your ECS disks.

select
instance_id,
timestamp,
round(minimum :: numeric, 2) as min_ops,
round(maximum :: numeric, 2) as max_ops,
round(average :: numeric, 2) as avg_ops
from
alicloud_ecs_disk_metric_write_iops_hourly
where
average > 1000
order by
instance_id,
timestamp;
select
instance_id,
timestamp,
round(minimum, 2) as min_ops,
round(maximum, 2) as max_ops,
round(average, 2) as avg_ops
from
alicloud_ecs_disk_metric_write_iops_hourly
where
average > 1000
order by
instance_id,
timestamp;

Schema for alicloud_ecs_disk_metric_write_iops_hourly

NameTypeOperatorsDescription
_ctxjsonbSteampipe context in JSON form.
account_idtext=, !=, ~~, ~~*, !~~, !~~*The Alicloud Account ID in which the resource is located.
averagedouble precisionThe average of the metric values that correspond to the data point.
instance_idtextAn unique identifier for the resource.
maximumdouble precisionThe maximum metric value for the data point.
metric_nametextThe name of the metric.
minimumdouble precisionThe minimum metric value for the data point.
namespacetextThe metric namespace.
sp_connection_nametext=, !=, ~~, ~~*, !~~, !~~*Steampipe connection name.
sp_ctxjsonbSteampipe context in JSON form.
timestamptimestamp with time zoneThe timestamp used for the data point.

Export

This table is available as a standalone Exporter CLI. Steampipe exporters are stand-alone binaries that allow you to extract data using Steampipe plugins without a database.

You can download the tarball for your platform from the Releases page, but it is simplest to install them with the steampipe_export_installer.sh script:

/bin/sh -c "$(curl -fsSL https://steampipe.io/install/export.sh)" -- alicloud

You can pass the configuration to the command with the --config argument:

steampipe_export_alicloud --config '<your_config>' alicloud_ecs_disk_metric_write_iops_hourly