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, averagefrom alicloud_ecs_disk_metric_write_iopsorder by instance_id, timestamp;
select instance_id, timestamp, minimum, maximum, averagefrom alicloud_ecs_disk_metric_write_iopsorder 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_opsfrom alicloud_ecs_disk_metric_write_iopswhere average > 1000order 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_opsfrom alicloud_ecs_disk_metric_write_iopswhere average > 1000order by instance_id, timestamp;
Schema for alicloud_ecs_disk_metric_write_iops
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form. | |
account_id | text | =, !=, ~~, ~~*, !~~, !~~* | The Alicloud Account ID in which the resource is located. |
average | double precision | The average of the metric values that correspond to the data point. | |
instance_id | text | An unique identifier for the resource. | |
maximum | double precision | The maximum metric value for the data point. | |
metric_name | text | The name of the metric. | |
minimum | double precision | The minimum metric value for the data point. | |
namespace | text | The metric namespace. | |
sp_connection_name | text | =, !=, ~~, ~~*, !~~, !~~* | Steampipe connection name. |
sp_ctx | jsonb | Steampipe context in JSON form. | |
timestamp | timestamp with time zone | The 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