turbot/steampipe-mod-gcp-compliance

Control: GKE clusters monitoring should be enabled

Description

This control ensures that GKE clusters monitoring is enabled.

Usage

Run the control in your terminal:

powerpipe control run gcp_compliance.control.kubernetes_cluster_monitoring_enabled

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run gcp_compliance.control.kubernetes_cluster_monitoring_enabled --share

SQL

This control uses a named query:

select
self_link resource,
case
when monitoring_service is null or monitoring_service = 'none' then 'alarm'
else 'ok'
end as status,
case
when monitoring_service is null or monitoring_service = 'none' then title || ' monitoring disabled.'
else title || ' monitoring enabled.'
end as reason
, location as location, project as project
from
gcp_kubernetes_cluster;

Tags