turbot/gitlab_insights

Query: project_expiring_member_1_year_count

Usage

powerpipe query gitlab_insights.query.project_expiring_member_1_year_count

SQL

select
'> 1 Year' as label,
count(m.*) as value
from
gitlab_my_project p
join gitlab_project_member m on p.id = m.project_id
where
m.state = 'active'
and (
m.expires_at is not null and
m.expires_at >= now() + '1 year' :: interval
);

Dashboards

The query is used in the dashboards: