turbot/gitlab_insights

Query: group_access_request_count

Usage

powerpipe query gitlab_insights.query.group_access_request_count

SQL

select
'Active Requests' as label,
count(r.*) as value,
case
when count(r.*) > 0 then 'alert'
else 'ok'
end as type
from
gitlab_group g
join gitlab_group_access_request r on g.id = r.group_id
where
r.state = 'active';

Dashboards

The query is used in the dashboards: