steampipe plugin install oci

Table: oci_mysql_db_system_metric_cpu_utilization_daily - Query OCI MySQL DB System Metrics using SQL

MySQL DB System is a fully managed database service in Oracle Cloud Infrastructure (OCI) that enables the deployment of cloud-native applications using the world's most popular open-source database. It provides a high-performance, seamless, and secure experience for developers and end users. This service is designed to handle any size workload from small to large scale applications.

Table Usage Guide

The oci_mysql_db_system_metric_cpu_utilization_daily table provides insights into the daily CPU utilization metrics of MySQL DB Systems within Oracle Cloud Infrastructure (OCI). As a database administrator or a system engineer, explore CPU-specific details through this table, including average, maximum, and minimum CPU utilization. Utilize it to uncover information about CPU usage patterns, such as peak utilization times, and to aid in capacity planning and performance tuning.

Examples

Basic info

Explore the variations in CPU utilization of your MySQL database system over time. This analysis can help you understand system performance and plan for capacity needs.

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

CPU Over 80% average

Determine the instances where the average CPU utilization exceeds 80% to proactively manage system performance and avoid potential bottlenecks.

select
id,
timestamp,
round(minimum :: numeric, 2) as min_cpu,
round(maximum :: numeric, 2) as max_cpu,
round(average :: numeric, 2) as avg_cpu,
sample_count
from
oci_mysql_db_system_metric_cpu_utilization_daily
where
average > 80
order by
id,
timestamp;
select
id,
timestamp,
round(minimum, 2) as min_cpu,
round(maximum, 2) as max_cpu,
round(average, 2) as avg_cpu,
sample_count
from
oci_mysql_db_system_metric_cpu_utilization_daily
where
average > 80
order by
id,
timestamp;

Schema for oci_mysql_db_system_metric_cpu_utilization_daily

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 DB System.
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_mysql_db_system_metric_cpu_utilization_daily