Skip to main content

Données disponibles dans les métriques d’utilisation de Copilot

You can display and export Copilot usage metrics data in the dashboard and via APIs.

Qui peut utiliser cette fonctionnalité ?

Enterprise owners and billing managers

Remarque

GitHub Copilot usage metrics are currently in public preview with data protection and subject to change.

The Copilot usage metrics dashboard and APIs display and export data using a consistent set of fields. This reference lists all available metrics and describes how to interpret their values in both dashboard visuals and NDJSON or API exports. To retrieve this data programmatically, see REST API endpoints for Copilot usage metrics.

For guidance on how to read and interpret these metrics, see GitHub Copilot usage metrics.

Copilot usage dashboard metrics

These metrics appear directly in the Copilot usage dashboard.

MetricDescription
Agent adoptionPercentage of Copilot-licensed active users who tried an agent in the current calendar month.
Average chat requests per active userAverage number of chat requests per active user.
Code completions (suggested/accepted)Total number of inline code suggestions shown and accepted.
Code completion acceptance ratePercentage of suggestions accepted by users.
Daily active usersNumber of unique users who used Copilot on a given day.
Weekly active usersNumber of unique users who used Copilot during a seven-day window.
Total active usersLicensed users active in the current calendar month.
Language usageDistribution of programming languages used with Copilot.
Language usage per dayDaily breakdown of languages used.
Model usageDistribution of AI models used for chat.
Model usage per dayDaily breakdown of chat model usage.
Model usage per chat modeModel usage by Copilot feature (Ask, Edit, Agent).
Model usage per languageDistribution of languages broken down by model.
Most used chat modelThe most frequently used chat model in the current calendar month.
Requests per chat modeNumber of chat requests by mode (Ask, Edit, Agent).

Code generation dashboard metrics

These metrics appear in the code generation dashboard and provide a breakdown of how code is being generated across user-initiated and agent-initiated activity. All values are derived from lines of code (LoC) added or deleted in the IDE.

MetricDescription
Lines of code changed with AITotal lines of code added and deleted across all modes during the current calendar month.
Agent contributionPercentage of lines of code added and deleted by agents (including Edit, Agent, and custom modes) during the current calendar month.
Average lines deleted by agentAverage number of lines automatically deleted by agents on behalf of active users during the current calendar month.
Daily total of lines added and deletedTotal number of lines added to and deleted from the codebase across all modes for each day.
User-initiated code changesLines suggested or manually added by users through code completions and chat panel actions (insert, copy, or apply).
Agent-initiated code changesLines automatically added to or deleted from the codebase by agents on behalf of users across Edit, Agent, and custom modes.
User-initiated code changes per modelUser-initiated lines of code, grouped by model used in the IDE.
Agent-initiated code changes per modelAgent-initiated lines of code, grouped by model performing the agent actions.
User-initiated code changes per languageUser-initiated lines of code, grouped by programming language.
Agent-initiated code changes per languageAgent-initiated lines of code, grouped by programming language.

API and export fields

These fields appear in the exported NDJSON reports and in the Copilot usage metrics APIs. They provide granular daily records for each user in the enterprise.

FieldDescription
agent_editA dedicated bucket in the API and reports. Captures lines added and deleted directly by Copilot Agent and Edit mode.
These are not included in suggested metrics, since agent edits don’t follow a simple suggestion to acceptance flow.
report_start_day / report_end_dayStart and end dates for the 28-day reporting period.
dayCalendar day this record represents.
enterprise_idUnique ID of the enterprise or organization.
user_id / user_loginUnique identifier and GitHub username for the user.
user_initiated_interaction_countNumber of explicit prompts sent to Copilot.

Only counts messages or prompts actively sent to the model. Does not include opening the chat panel, switching modes (for example, Ask, Edit, or Agent), using keyboard shortcuts to open the inline UI, or making configuration changes.
code_generation_activity_countNumber of distinct Copilot output events generated.

Includes: All generated content, including comments and docstrings.
Multiple blocks: Each distinct code block from a single user prompt counts as a separate generation.
Note: This metric is not directly comparable to user_initiated_interaction_count, since one prompt can produce multiple generations.
code_acceptance_activity_countNumber of suggestions or code blocks accepted by users.

Counts: All built-in accept actions, such as “apply to file,” “insert at cursor,” “insert into terminal,” and use of the Copy button.
Does not count: Manual OS clipboard actions (for example, Ctrl+C).
Granularity: Each acceptance action increments the count once, regardless of how many code blocks were generated by the initial prompt.
loc_suggested_to_add_sumLines of code Copilot suggested to add (completions, inline chat, chat panel, etc.; excludes Agent edits).
loc_suggested_to_delete_sumLines of code Copilot suggested to delete (future support planned).
loc_added_sumLines of code actually added to the editor (accepted completions, applied code blocks, agent/edit mode).
loc_deleted_sumLines of code deleted from the editor (currently from Agent edits).
totals_by_ideBreakdown of metrics by IDE used.
totals_by_featureBreakdown of metrics by Copilot feature (e.g., inline chat, chat panel).
totals_by_language_featureBreakdown combining language and feature dimensions.
totals_by_model_feature / totals_by_language_modelModel-specific breakdowns for chat activity (not completions).
last_known_ide_version / last_known_plugin_versionThe most recent IDE and Copilot Chat extension version detected for each user.