steampipe plugin install oci

Table: oci_database_autonomous_db_metric_storage_utilization - Query OCI Database Autonomous Databases using SQL

Oracle Cloud Infrastructure (OCI) Database Autonomous Database is a fully managed, pre-configured database environment with two workload types available - Autonomous Transaction Processing and Autonomous Data Warehouse. The environment uses machine learning algorithms to enable automation of database tuning, security, backups, updates, and other routine management tasks traditionally performed by database administrators. It offers high-performance, reliability, and seamless scalability with a broad suite of developer tools.

Table Usage Guide

The oci_database_autonomous_db_metric_storage_utilization table provides insights into the storage utilization metrics of OCI Database Autonomous Databases. As a database administrator or data analyst, you can use this table to monitor and manage storage utilization, enabling you to optimize database performance and resource allocation. It can also be useful for auditing and compliance purposes, helping you ensure that storage usage aligns with organizational policies and industry regulations.

Examples

Basic info

Explore the storage utilization of your autonomous database to gain insights into usage trends over time. This can help in planning storage capacity and maintaining optimal performance.

select
id,
timestamp,
minimum,
maximum,
average,
sample_count
from
oci_database_autonomous_database_metric_storage_utilization
order by
id,
timestamp;
select
id,
timestamp,
minimum,
maximum,
average,
sample_count
from
oci_database_autonomous_database_metric_storage_utilization
order by
id,
timestamp;

Storage Utilization Over 80% average

Identify instances where the average storage utilization of your autonomous database in OCI exceeds 80%. This can help in managing resources effectively by pinpointing databases that might need storage optimization or capacity upgrades.

select
id,
timestamp,
round(minimum :: numeric, 2) as min_storage,
round(maximum :: numeric, 2) as max_storage,
round(average :: numeric, 2) as avg_storage,
sample_count
from
oci_database_autonomous_database_metric_storage_utilization
where
average > 80
order by
id,
timestamp;
select
id,
timestamp,
round(minimum, 2) as min_storage,
round(maximum, 2) as max_storage,
round(average, 2) as avg_storage,
sample_count
from
oci_database_autonomous_database_metric_storage_utilization
where
average > 80
order by
id,
timestamp;

Schema for oci_database_autonomous_db_metric_storage_utilization

NameTypeOperatorsDescription
_ctxjsonbSteampipe context in JSON form.
averagedouble precisionThe average of the metric values that correspond to the data point.
compartment_idtextThe ID of the compartment.
idtextThe OCID of the Autonomous Database.
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.
regiontextThe OCI region in which the resource is located.
sample_countdouble precisionThe number of metric values that contributed to the aggregate value of this data point.
sp_connection_nametext=, !=, ~~, ~~*, !~~, !~~*Steampipe connection name.
sp_ctxjsonbSteampipe context in JSON form.
sumdouble precisionThe sum of the metric values for the data point.
tenant_idtext=, !=, ~~, ~~*, !~~, !~~*The OCID of the Tenant in which the resource is located.
tenant_nametextThe name of the Tenant in which the resource is located.
timestamptimestamp with time zoneThe time stamp used for the data point.
unittextThe standard unit 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)" -- oci

You can pass the configuration to the command with the --config argument:

steampipe_export_oci --config '<your_config>' oci_database_autonomous_db_metric_storage_utilization