turbot/steampipe-mod-guardrails-insights

Control: Turbot > Mod > Process Monitor

Description

Workspaces Mod Process Monitor summary.

Usage

Run the control in your terminal:

powerpipe control run guardrails_insights.control.mod_process_monitor

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run guardrails_insights.control.mod_process_monitor --share

SQL

This control uses a named query:

select
workspace as resource,
case
when state in ('tbd', 'invalid') then 'info'
else state
end as status,
case
when state = 'ok' then split_part(workspace, '//', 2) || ' is healthy.'
else split_part(workspace, '//', 2) || ' ' || reason || '.'
end as reason
, split_part(workspace, '//', 2) as workspace
from
guardrails_control
where
control_type_uri = 'tmod:@turbot/turbot#/control/types/processMonitor'
group by
workspace, id, state, resource_trunk_title, reason
order by
workspace;