Table: oci_database_autonomous_db_metric_storage_utilization_daily - Query OCI Database Autonomous Databases using SQL
Oracle Cloud Infrastructure's Autonomous Database is a fully managed, preconfigured database environment with two workload types available - Autonomous Transaction Processing and Autonomous Data Warehouse. The autonomous database is self-driving, self-securing, and self-repairing, which can automate all routine database tasks. It uses machine learning algorithms to enable unprecedented availability, high performance, and security, delivering a significantly lower cost of ownership.
Table Usage Guide
The oci_database_autonomous_db_metric_storage_utilization_daily
table provides insights into the daily storage utilization metrics of OCI Autonomous Databases. As a database administrator, you can use this table to monitor and analyze storage usage trends and patterns over time. This can help in proactive capacity planning, ensuring optimal performance, and avoiding potential storage-related issues.
Examples
Basic info
Explore the patterns of storage utilization in your Oracle Cloud Infrastructure's autonomous databases. This query helps you assess the minimum, maximum, and average storage used daily, aiding in efficient resource management.
select id, timestamp, minimum, maximum, average, sample_countfrom oci_database_autonomous_db_metric_storage_utilization_dailyorder by id, timestamp;
select id, timestamp, minimum, maximum, average, sample_countfrom oci_database_autonomous_db_metric_storage_utilization_dailyorder by id, timestamp;
Storage Utilization Over 80% average
Determine the areas in which storage utilization exceeds an average of 80%. This query is useful for identifying potential issues with storage management and can aid in optimizing resource allocation.
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_countfrom oci_database_autonomous_db_metric_storage_utilization_dailywhere average > 80order 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_countfrom oci_database_autonomous_db_metric_storage_utilization_dailywhere average > 80order by id, timestamp;
Query examples
Schema for oci_database_autonomous_db_metric_storage_utilization_daily
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form. | |
average | double precision | The average of the metric values that correspond to the data point. | |
compartment_id | text | The ID of the compartment. | |
id | text | The OCID of the Autonomous Database. | |
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. | |
region | text | The OCI region in which the resource is located. | |
sample_count | double precision | The number of metric values that contributed to the aggregate value of this data point. | |
sp_connection_name | text | =, !=, ~~, ~~*, !~~, !~~* | Steampipe connection name. |
sp_ctx | jsonb | Steampipe context in JSON form. | |
sum | double precision | The sum of the metric values for the data point. | |
tenant_id | text | =, !=, ~~, ~~*, !~~, !~~* | The OCID of the Tenant in which the resource is located. |
tenant_name | text | The name of the Tenant in which the resource is located. | |
timestamp | timestamp with time zone | The time stamp used for the data point. | |
unit | text | The 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_daily