Table: alicloud_rds_instance_metric_connections
Alicloud Monitoring metrics provide data about the performance of your systems. The alicloud_rds_instance_metric_connections
table provides metric statistics at 5 minute intervals for the most recent 5 days.
Note: If the instance is not older than 5 minute then we will not get any metric statistics.
Examples
Basic info
Explore the connection metrics of database instances to gain insights into their performance and usage over time. This can help in identifying potential bottlenecks, planning capacity, and understanding the overall health of your databases.
select db_instance_id, timestamp, minimum, maximum, averagefrom alicloud_rds_instance_metric_connectionsorder by db_instance_id, timestamp;
select db_instance_id, timestamp, minimum, maximum, averagefrom alicloud_rds_instance_metric_connectionsorder by db_instance_id, timestamp;
Intervals where connection exceed 1000 average
Determine the intervals in which the average number of connections to your Alicloud RDS instances exceeds 1000. This can help identify potential performance issues or periods of heavy usage.
select db_instance_id, timestamp, round(minimum :: numeric, 2) as min_conn, round(maximum :: numeric, 2) as max_conn, round(average :: numeric, 2) as avg_connfrom alicloud_rds_instance_metric_connectionswhere average > 1000order by db_instance_id, timestamp;
select db_instance_id, timestamp, round(minimum, 2) as min_conn, round(maximum, 2) as max_conn, round(average, 2) as avg_connfrom alicloud_rds_instance_metric_connectionswhere average > 1000order by db_instance_id, timestamp;
Schema for alicloud_rds_instance_metric_connections
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. | |
db_instance_id | text | The ID of the single instance to query. | |
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_rds_instance_metric_connections