turbot/steampipe-mod-oci-insights

Dashboard: OCI Database Autonomous DB Dashboard

This dashboard answers the following questions:

  • How many autonomous databases are in each tenancy, compartment, and region?
  • How many cores are allocated across all autonomous databases?
  • What is the total size of all autonomous databases?
  • How many autonomous databases have data guard and operations insights disabled?
  • What are my most used autonomous databases by CPU and storage utilization?
This dashboard contains 5 cards.

Usage

Install the mod:

mkdir dashboards
cd dashboards
powerpipe mod init
powerpipe mod install github.com/turbot/steampipe-mod-oci-insights

Start the Powerpipe server:

steampipe service start
powerpipe server

Open http://localhost:9033 in your browser and select OCI Database Autonomous DB Dashboard dashboard.

You could also snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe dashboard run oci_insights.dashboard.database_autonomous_db_dashboard --share

Queries

This dashboard uses the the following queries:
with compartments as (
select
id,
'root [' || title || ']' as title
from
oci_identity_tenancy
union (
select
c.id,
c.title || ' [' || t.title || ']' as title
from
oci_identity_compartment c,
oci_identity_tenancy t
where
c.tenant_id = t.id and c.lifecycle_state = 'ACTIVE'
)
)
select
c.title as "Title",
count(a.*) as "Autonomous DBs"
from
oci_database_autonomous_database as a,
compartments as c
where
c.id = a.compartment_id
group by
c.title
order by
c.title;

Tags