Skip to main content
GitLab Duo logo

GitLab Duo

GitLab Duo AI metrics — per-user usage across Code Suggestions, Duo Chat, Code Review, Agent Platform, Job Troubleshooting, and MCP tool calls, plus the AI Catalog agents/flows configured for a group. Pairs with `gitlab` connector for code/MR operations.

Category ai platform

Capability matrix

Catalog declarations describe the connector. Review status and limits for qualification.

Indexes No
Tracks spend Declared
Discovers AI assets Declared
Runs actions Declared
Webhook events No

Declared capabilities

What the connector catalog declares for GitLab Duo. A declaration is not proof that it is qualified for your deployment; anything not yet qualified is listed on Status and limits.

AI asset discovery
Telara can read the AI assets this system holds into the AI Estate.
Spend and usage
Telara can collect AI spend and usage from this system.

How Telara applies

Policy applies to calls routed through Telara. Discovery and spend collection observe activity; they do not govern calls that bypass Telara.

MCP routing
No MCP routing declaration
Declared actions (2)
  • resolve_group_idreadread — Internal helper. Resolves the connected group's GraphQL Global ID (gid://gitlab/Group/<id>) from its full path via GitLab's group search, because Duo Agent Platform / AI Catalog queries require the strict GroupID scalar rather than a plain numeric id or path. Call list_duo_agent_catalog_items instead of this directly.
  • list_duo_agent_catalog_itemsreadlist — List the AI Catalog agents/flows configured for use in a GitLab group — GitLab Duo Agent Platform's real agent inventory surface. Each row is a group-level configuration (item + enabled state), not the shared catalog definition itself.

Catalog credential aliases gitlab_duo_pat, gitlab_duo_oauth.

Prerequisites

A GitLab.com group or self-managed instance with Duo.
Owner or a token that can read Duo usage. This is not the GitLab source connector.

Get the credential

1
Prefer Connect on GitLab.com
Settings → Integrations → GitLab Duo. Approve access. Grant the permissions this page lists from the catalog.
2
Token path
On self-managed, create a personal or group access token and paste it. Do not copy a permission list from an old wiki.

Permissions Telara requests

  • read_api
    OAuth 2.0
  • read_user
    OAuth 2.0

Connect in Telara

Personal access token

GitLab Personal Access Token (or Group Access Token) with scopes: - `read_api` — sufficient for AiUserMetrics / AiMetrics / AiUsageData reads - `api` — required only if you also want to drive seat assignment via the userAddOnAssignmentBulkCreate mutation from the same credential Token must belong to a user with the Owner role on the target group (group-level GraphQL aiUserMetrics is owner-gated). Per GitLab docs: AiUserMetrics and AiMetrics require ClickHouse to be configured on the target instance — see retention notes above.

In Telara, open Settings → Integrations, choose this connector, and paste the token into the field Telara shows.

Fields Telara asks for
  • Private token
OAuth 2.0

OAuth flow for hosted gitlab.com. `read_api` is enough for spend metrics reads; add `api` if seat assignment is also delegated.

In Telara, open Settings → Integrations, choose this connector, and click Connect. Telara sends you to the vendor to approve access, then returns you here. You do not create an OAuth app or paste a client secret.

What gets measured

Method pull_admin_api. Cadence hourly.

Catalog status available. Tier team. Billing method admin_api.

Resolution: Per user per day.

Attribution: Matched to people by directory ID.

Declared vendor history windows 90 days.

  • duo_total_events
    events
  • code_suggestions_events
    events
  • duo_chat_events
    events
  • code_review_events
    events
  • agent_platform_events
    events
  • troubleshoot_job_events
    events
  • mcp_tool_call_events
    events
  • code_suggestions_shown
    count
  • code_suggestions_accepted
    count
  • code_suggestions_shown_lines
    lines
  • code_suggestions_accepted_lines
    lines
  • duo_code_contributors
    users
  • duo_chat_contributors
    users
  • duo_used_users
    users

What gets discovered

Discovery method tool using list_duo_agent_catalog_items.

Resource kinds

logical_agent

Freshness & sync

Indexing lag is not published for this connector. Review the declared collection method and cadence in the measurement section.

Permissions & data handling

The scopes above are the permissions this connector requests. They come from the catalog, not from a hand-written page.

This catalog entry does not declare extra semantic-search exclusions.

Verify it worked

The catalog does not declare a credential probe for this connector. Verify the connection path and source response before relying on a saved connection.

Known limitations

A token that can clone code is not enough for Duo usage reports.
Self-managed instances must be reachable from Telara.

In the product

Screens from a Telara test workspace with sample data. Your workspace shows your own systems, people and policies.

Integrations catalog filtered by a search for aws
Searching the integration catalog. Email addresses masked.
Connect page for an integration that signs in with OAuth
The connect page for a connector that signs in with OAuth. The sign-in was not started. Email addresses masked.
Connect form for an integration that uses an access key, with the credential scope and empty key fields
The connect form for a connector that authenticates with keys. Nothing was entered. Email addresses masked.
Integration detail for a connected integration with its connections and status
A connected integration with its connections, status and indexing state. Email addresses masked.