Loading
Wire AI Governance dashboard summary metrics to aiGovernanceMetrics API
What does this MR do?
Wires the AI Governance dashboard summary tiles (AI agents, AI sessions) to the real aiGovernanceMetrics GraphQL API instead of mock data.
- Starts using the API
aiGovernanceMetrics(timeframe:)→agents/sessionsKPIs withcount,previousCount,trend. - queries the metrics and maps each KPI to a tile:
count→ value,count − previousCount→ signed delta and up/down/neutral direction,trend→ sparkline series. - Degrades gracefully (neutral placeholder) while the field is not deployed or the
ai_governance_dashboardflag is off, so the dashboard keeps rendering.
References
- Related Backend MR: !244211 (merged) (
aiGovernanceMetricsGraphQL API). - Design: https://pajamas-prototype-kit-c21410.gitlab.io/#/agent-registry-v7/dashboard
| Before | After |
|---|---|
![]() |
![]() |
Please note some of the enhancements are being done in a follow-up MR: Simplify AI Governance dashboard summary tiles ... (!248465 - merged)
How to test locally
- Set up GitLab Duo locally (SaaS mode + licensed group): Set up GitLab Duo.
- Enable the flag:
Feature.enable(:ai_governance_dashboard) - Visit Settings → GitLab Duo → Governance on the
gitlab-duogroup, open the Dashboard tab
Edited by Dheeraj Joshi

