turbot/gcp_insights

Query: kubernetes_cluster_degraded

Usage

powerpipe query gcp_insights.query.kubernetes_cluster_degraded

Steampipe Tables

SQL

select
initcap(status) as value,
'Status' as label,
case when status = 'DEGRADED' then 'alert' else 'ok' end as type
from
gcp_kubernetes_cluster
where
id = split_part($1, '/', 1)
and project = split_part($1, '/', 2);

Dashboards

The query is used in the dashboards: