turbot/steampipe-mod-oci-insights

Dashboard: OCI ONS Notification Topic Dashboard

This dashboard answers the following questions:

  • How many topics are in each tenancy, compartment, and region?
  • How many topics have no subscription?
This dashboard contains 2 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 ONS Notification Topic Dashboard dashboard.

You could also snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe dashboard run oci_insights.dashboard.ons_notification_topic_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(t.*) as "Topics"
from
oci_ons_notification_topic as t,
compartments as c
where
c.id = t.compartment_id
group by
c.title
order by
c.title;

Tags