turbot/alicloud
steampipe plugin install alicloud

Table: alicloud_rds_instance_metric_connections_daily

Alicloud Monitoring metrics provide data about the performance of your systems. The alicloud_rds_instance_metric_connections_daily table provides metric statistics at 24 hour intervals for the most recent 30 days.

Note: If the instance is not older than one day then we will not get any metric statistics.

Examples

Basic info

Explore the variation in daily connection metrics for your RDS instances to understand usage patterns and potential bottlenecks. This can be useful for capacity planning and performance optimization.

select
db_instance_id,
timestamp,
minimum,
maximum,
average
from
alicloud_rds_instance_metric_connections_daily
order by
db_instance_id,
timestamp;
select
db_instance_id,
timestamp,
minimum,
maximum,
average
from
alicloud_rds_instance_metric_connections_daily
order by
db_instance_id,
timestamp;

Intervals where connection exceed 1000 average

Discover the instances where the average number of connections exceeds 1000 in your Alicloud RDS, providing a detailed overview of database usage and potential performance issues.

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_conn
from
alicloud_rds_instance_metric_connections_daily
where
average > 1000
order 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_conn
from
alicloud_rds_instance_metric_connections_daily
where
average > 1000
order by
db_instance_id,
timestamp;

Schema for alicloud_rds_instance_metric_connections_daily

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.
db_instance_idtextThe ID of the single instance to query.
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_rds_instance_metric_connections_daily