turbot/steampipe-mod-oci-insights

Dashboard: OCI NoSQL Table Dashboard

This dashboard answers the following questions:

  • How many tables are in each tenancy, compartment, and region?
  • What are my most used tables by storage utilization?
This dashboard contains 1 card.

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 NoSQL Table Dashboard dashboard.

You could also snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe dashboard run oci_insights.dashboard.nosql_table_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(n.*) as "NoSQL Tables"
from
oci_nosql_table as n,
compartments as c
where
c.id = n.compartment_id and n.lifecycle_state <> 'DELETED'
group by
c.title
order by
c.title;

Tags