turbot/gcp_insights

Query: compute_disk_top_10_write_ops_avg

Usage

powerpipe query gcp_insights.query.compute_disk_top_10_write_ops_avg

SQL

with top_n as (
select
name,
avg(average)
from
gcp_compute_disk_metric_write_ops_daily
where
timestamp >= CURRENT_DATE - INTERVAL '7 day'
group by
name
order by
avg desc
limit 10
)
select
timestamp,
name,
average
from
gcp_compute_disk_metric_write_ops_hourly
where
timestamp >= CURRENT_DATE - INTERVAL '7 day'
and name in (select name from top_n);

Dashboards

The query is used in the dashboards: