turbot/steampipe-mod-oci-insights

Dashboard: OCI File Storage File System Dashboard

This dashboard answers the following questions:

  • How many file systems are in each tenancy, compartment, and region?
  • How many cloned file systems are there?
  • How many file system snapshots are there?
This dashboard contains 3 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 File Storage File System Dashboard dashboard.

You could also snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe dashboard run oci_insights.dashboard.filestorage_filesystem_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(f.*) as "File Systems"
from
oci_file_storage_file_system as f,
compartments as c
where
c.id = f.compartment_id and f.lifecycle_state <> 'DELETED'
group by
c.title
order by
c.title;

Tags