turbot/gcp_insights

Query: sql_database_instance_backup_status

Usage

powerpipe query gcp_insights.query.sql_database_instance_backup_status

SQL

select
backup_status,
count(*)
from (
select name,
case when backup_enabled then
'enabled'
else
'disabled'
end backup_status
from
gcp_sql_database_instance) as c
group by
backup_status
order by
backup_status;

Dashboards

The query is used in the dashboards: