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, averagefrom alicloud_ecs_disk_metric_write_iops_hourlyorder by instance_id, timestamp;
select instance_id, timestamp, minimum, maximum, averagefrom alicloud_ecs_disk_metric_write_iops_hourlyorder 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_opsfrom alicloud_ecs_disk_metric_write_iops_hourlywhere 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_iops_hourlywhere average > 1000order by instance_id, timestamp;
Query examples
Schema for alicloud_ecs_disk_metric_write_iops_hourly
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_hourly