turbot/alicloud
steampipe plugin install alicloud

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

Alibaba Cloud Elastic Compute Service (ECS) is a high-performance, stable, reliable, and scalable IaaS-level service provided by Alibaba Cloud. ECS eliminates the need to invest in IT hardware upfront and allows you to quickly scale computing resources on demand, making ECS more convenient and efficient than physical servers. ECS provides a variety of instance types that suit different business needs and help boost business growth.

Table Usage Guide

The alicloud_ecs_disk_metric_write_iops table provides insights into the write operations performance of disks within Alibaba Cloud Elastic Compute Service (ECS). As a system administrator or a DevOps engineer, explore disk-specific details through this table, including the write input/output operations per second (IOPS). Utilize it to uncover information about disk performance, such as potential bottlenecks, and to ensure optimal resource allocation and performance tuning.

Examples

Basic info

Analyze the write operations per second on your Alibaba Cloud Elastic Compute Service (ECS) disks to understand their performance over time. This can help in identifying any potential bottlenecks or performance issues.

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

Intervals where operation exceed 1000 average write iops

Determine the instances and times when the average write operations per second exceeded 1000. This can be useful for identifying periods of high disk activity and potential performance issues.

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
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
where
average > 1000
order by
instance_id,
timestamp;

Schema for alicloud_ecs_disk_metric_write_iops

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