turbot/steampipe-mod-gcp-insights

Dashboard: GCP Compute Disk Detail

This dashboard answers the following questions for each disk:

  • How is the disk configured?
  • What relationships does the disk have with other resources?
  • What tags are applied?
  • What instances is it attached to?
  • How is encryption configured?
  • What is the read and write throughput?
This dashboard contains 5 cards, 1 graph, 1 input and 4 tables.

Usage

Install the mod:

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

Start the Powerpipe server:

steampipe service start
powerpipe server

Open http://localhost:9033 in your browser and select GCP Compute Disk Detail dashboard.

You could also snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe dashboard run gcp_insights.dashboard.compute_disk_detail --share

Queries

This dashboard uses the the following queries:
with disks as (
select
instance_selflink
from
gcp_compute_disk, jsonb_array_elements_text(users) as instance_selflink
where
id = (split_part($1, '/', 1))::bigint
and project = split_part($1, '/', 2)
)
select
i.name as "Name",
i.id::text as "Instance ID",
i.status as "Instance State"
from
disks as d
left join gcp_compute_instance as i on i.self_link = d.instance_selflink;

Tags