インテグレーションバージョン2.1.0

To find out if this integration is available in your organization, see your Datadog Integrations page or ask your organization administrator.

To initiate an exception request to enable this integration for your organization, email support@ddog-gov.com.

このページは日本語には対応しておりません。随時翻訳に取り組んでいます。
翻訳に関してご質問やご意見ございましたら、お気軽にご連絡ください

Overview

Datadog’s GitHub Copilot integration collects metrics from GitHub’s Copilot Usage API, giving you visibility into how Copilot is being used across your enterprise and organizations.

This integration covers every Copilot surface: code completions, chat, agent mode, plan mode, CLI, and pull requests. Metrics are broken down by team, language, IDE, editor, and repository, with user-level granularity.

With this integration, you can:

  • Track every Copilot surface: Code completions, chat interactions (ask, edit, plan, agent, and custom modes), agent mode edits, plan mode telemetry, CLI sessions, and PR workflows.
  • Measure code generation impact: See lines of code suggested versus accepted across all modes. Track PRs created, reviewed, merged, and Copilot-authored.
  • Get user-level granularity: Break down adoption per individual developer, not just org- or team-level aggregates.
  • Track daily and weekly active users: See how many developers are actively using Copilot and how that trends over time.
  • Monitor license spend: Get real-time visibility into seat assignments for the current billing cycle.

Collected metrics

Metrics are reported under the github_copilot.usage.* namespace, with granular breakdowns by team, language, IDE, editor, and repository:

  • Code completions: Suggestion counts, acceptance rates, and lines of code (suggested versus accepted) across VS Code, JetBrains, Eclipse, Xcode, and more.
  • Chat: Breakdowns by mode: ask, edit, plan, agent, and custom. Covers both IDE and GitHub.com chat.
  • Agent mode: Edits performed, lines added and deleted by agents.
  • Plan mode: Telemetry across JetBrains, Eclipse, Xcode, and VS Code.
  • CLI (enterprise only): Session counts, request volumes, and token usage.
  • Pull requests: Full lifecycle: PRs created, reviewed, merged, and Copilot-authored.
  • User engagement: Daily and weekly active user counts. Distinguishes between active users (any Copilot activity) and engaged users (accepted a suggestion, generated a PR summary, and so on).
  • Billing: Seat assignments for the current billing cycle, continuously refreshed.

Setup

To collect GitHub Copilot metrics, click Authorize to authenticate using OAuth.

Permissions needed overall

To integrate Github Copilot with Datadog, the authenticated user must be an owner of the organizations or enterprise you want to fetch data from. Besides, the Copilot Metrics API access policy must be enabled for these organizations and the organizations must not have OAuth App access restrictions (see GitHub docs).

Enterprise Cloud setup

To complete setup after clicking authorize, set the enterprise name and URL (URL only if you access GitHub at GHE.com) in the correct columns. Note that the Copilot metrics are not available for GitHub Enterprise Cloud with data residency on GHE.com.

Validation

After installation, metrics are available with the prefix github_copilot.

Data Collected

Metrics

github_copilot.organizations.billing.seats.total
(count)
The total number of seats being billed for the organization as of the current billing cycle.
github_copilot.organizations.billing.seats.added_this_cycle
(count)
Seats added during the current billing cycle.
github_copilot.organizations.billing.seats.pending_invitation
(count)
The number of seats that have been assigned to users that have not yet accepted an invitation to this organization.
github_copilot.organizations.billing.seats.pending_cancellation
(count)
The number of seats that are pending cancellation at the end of the current billing cycle.
github_copilot.organizations.billing.seats.active_this_cycle
(count)
The number of seats that have used Copilot during the current billing cycle.
github_copilot.organizations.billing.seats.inactive_this_cycle
(count)
The number of seats that have not used Copilot during the current billing cycle.
github_copilot.enterprises.billing.seats.total
(count)
The total number of seats being billed as of the current billing cycle.
github_copilot.usage.organizations.daily_active_users
(count)
Number of unique users who used Copilot on a given day.
github_copilot.usage.organizations.daily_active_cli_users
(count)
Number of unique users who used Copilot via the CLI on a given day.
github_copilot.usage.organizations.weekly_active_users
(count)
Number of unique users who used Copilot during a seven-day window.
github_copilot.usage.organizations.monthly_active_users
(count)
Number of unique users who used Copilot during the last 28 days.
github_copilot.usage.organizations.monthly_active_chat_users
(count)
Number of unique users who used Copilot Chat during the last 28 days.
github_copilot.usage.organizations.monthly_active_agent_users
(count)
Number of unique users who used Copilot agent mode during the last 28 days.
github_copilot.usage.organizations.user_initiated_interaction_count
(count)
Number of explicit prompts sent to Copilot. Only counts messages or prompts actively sent to the model.
github_copilot.usage.organizations.code_generation_activity_count
(count)
Number of distinct Copilot output events generated. Includes all generated content such as comments and docstrings.
github_copilot.usage.organizations.code_acceptance_activity_count
(count)
Number of suggestions or code blocks accepted by users.
github_copilot.usage.organizations.loc_suggested_to_add_sum
(count)
Total lines of code Copilot suggested to add (completions and chat; excludes agent edits).
github_copilot.usage.organizations.loc_suggested_to_delete_sum
(count)
Total lines of code Copilot suggested to delete.
github_copilot.usage.organizations.loc_added_sum
(count)
Total lines of code actually added to the editor (accepted completions and applied code blocks).
github_copilot.usage.organizations.loc_deleted_sum
(count)
Total lines of code deleted from the editor (currently from agent edits).
github_copilot.usage.organizations.by_ide.user_initiated_interaction_count
(count)
Number of explicit prompts sent to Copilot. Only counts messages or prompts actively sent to the model. Broken down by IDE.
github_copilot.usage.organizations.by_ide.code_generation_activity_count
(count)
Number of distinct Copilot output events generated. Includes all generated content such as comments and docstrings. Broken down by IDE.
github_copilot.usage.organizations.by_ide.code_acceptance_activity_count
(count)
Number of suggestions or code blocks accepted by users. Broken down by IDE.
github_copilot.usage.organizations.by_ide.loc_suggested_to_add_sum
(count)
Total lines of code Copilot suggested to add (completions and chat; excludes agent edits). Broken down by IDE.
github_copilot.usage.organizations.by_ide.loc_suggested_to_delete_sum
(count)
Total lines of code Copilot suggested to delete. Broken down by IDE.
github_copilot.usage.organizations.by_ide.loc_added_sum
(count)
Total lines of code actually added to the editor (accepted completions and applied code blocks). Broken down by IDE.
github_copilot.usage.organizations.by_ide.loc_deleted_sum
(count)
Total lines of code deleted from the editor (currently from agent edits). Broken down by IDE.
github_copilot.usage.organizations.by_feature.user_initiated_interaction_count
(count)
Number of explicit prompts sent to Copilot. Only counts messages or prompts actively sent to the model. Broken down by Copilot feature.
github_copilot.usage.organizations.by_feature.code_generation_activity_count
(count)
Number of distinct Copilot output events generated. Includes all generated content such as comments and docstrings. Broken down by Copilot feature.
github_copilot.usage.organizations.by_feature.code_acceptance_activity_count
(count)
Number of suggestions or code blocks accepted by users. Broken down by Copilot feature.
github_copilot.usage.organizations.by_feature.loc_suggested_to_add_sum
(count)
Total lines of code Copilot suggested to add (completions and chat; excludes agent edits). Broken down by Copilot feature.
github_copilot.usage.organizations.by_feature.loc_suggested_to_delete_sum
(count)
Total lines of code Copilot suggested to delete. Broken down by Copilot feature.
github_copilot.usage.organizations.by_feature.loc_added_sum
(count)
Total lines of code actually added to the editor (accepted completions and applied code blocks). Broken down by Copilot feature.
github_copilot.usage.organizations.by_feature.loc_deleted_sum
(count)
Total lines of code deleted from the editor (currently from agent edits). Broken down by Copilot feature.
github_copilot.usage.organizations.by_language_feature.user_initiated_interaction_count
(count)
Number of explicit prompts sent to Copilot. Only counts messages or prompts actively sent to the model. Broken down by programming language and Copilot feature.
github_copilot.usage.organizations.by_language_feature.code_generation_activity_count
(count)
Number of distinct Copilot output events generated. Includes all generated content such as comments and docstrings. Broken down by programming language and Copilot feature.
github_copilot.usage.organizations.by_language_feature.code_acceptance_activity_count
(count)
Number of suggestions or code blocks accepted by users. Broken down by programming language and Copilot feature.
github_copilot.usage.organizations.by_language_feature.loc_suggested_to_add_sum
(count)
Total lines of code Copilot suggested to add (completions and chat; excludes agent edits). Broken down by programming language and Copilot feature.
github_copilot.usage.organizations.by_language_feature.loc_suggested_to_delete_sum
(count)
Total lines of code Copilot suggested to delete. Broken down by programming language and Copilot feature.
github_copilot.usage.organizations.by_language_feature.loc_added_sum
(count)
Total lines of code actually added to the editor (accepted completions and applied code blocks). Broken down by programming language and Copilot feature.
github_copilot.usage.organizations.by_language_feature.loc_deleted_sum
(count)
Total lines of code deleted from the editor (currently from agent edits). Broken down by programming language and Copilot feature.
github_copilot.usage.organizations.by_language_model.user_initiated_interaction_count
(count)
Number of explicit prompts sent to Copilot. Only counts messages or prompts actively sent to the model. Broken down by programming language and model.
github_copilot.usage.organizations.by_language_model.code_generation_activity_count
(count)
Number of distinct Copilot output events generated. Includes all generated content such as comments and docstrings. Broken down by programming language and model.
github_copilot.usage.organizations.by_language_model.code_acceptance_activity_count
(count)
Number of suggestions or code blocks accepted by users. Broken down by programming language and model.
github_copilot.usage.organizations.by_language_model.loc_suggested_to_add_sum
(count)
Total lines of code Copilot suggested to add (completions and chat; excludes agent edits). Broken down by programming language and model.
github_copilot.usage.organizations.by_language_model.loc_suggested_to_delete_sum
(count)
Total lines of code Copilot suggested to delete. Broken down by programming language and model.
github_copilot.usage.organizations.by_language_model.loc_added_sum
(count)
Total lines of code actually added to the editor (accepted completions and applied code blocks). Broken down by programming language and model.
github_copilot.usage.organizations.by_language_model.loc_deleted_sum
(count)
Total lines of code deleted from the editor (currently from agent edits). Broken down by programming language and model.
github_copilot.usage.organizations.by_model_feature.user_initiated_interaction_count
(count)
Number of explicit prompts sent to Copilot. Only counts messages or prompts actively sent to the model. Broken down by model and Copilot feature.
github_copilot.usage.organizations.by_model_feature.code_generation_activity_count
(count)
Number of distinct Copilot output events generated. Includes all generated content such as comments and docstrings. Broken down by model and Copilot feature.
github_copilot.usage.organizations.by_model_feature.code_acceptance_activity_count
(count)
Number of suggestions or code blocks accepted by users. Broken down by model and Copilot feature.
github_copilot.usage.organizations.by_model_feature.loc_suggested_to_add_sum
(count)
Total lines of code Copilot suggested to add (completions and chat; excludes agent edits). Broken down by model and Copilot feature.
github_copilot.usage.organizations.by_model_feature.loc_suggested_to_delete_sum
(count)
Total lines of code Copilot suggested to delete. Broken down by model and Copilot feature.
github_copilot.usage.organizations.by_model_feature.loc_added_sum
(count)
Total lines of code actually added to the editor (accepted completions and applied code blocks). Broken down by model and Copilot feature.
github_copilot.usage.organizations.by_model_feature.loc_deleted_sum
(count)
Total lines of code deleted from the editor (currently from agent edits). Broken down by model and Copilot feature.
github_copilot.usage.organizations.cli.session_count
(count)
Number of distinct Copilot CLI sessions initiated on this day.
github_copilot.usage.organizations.cli.request_count
(count)
Total number of requests made to Copilot via the CLI on this day.
github_copilot.usage.organizations.cli.prompt_count
(count)
Total number of user prompts or commands sent to Copilot via the CLI on this day.
github_copilot.usage.organizations.cli.token_usage.output_tokens_sum
(count)
Total number of output tokens generated across all Copilot CLI requests on this day.
github_copilot.usage.organizations.cli.token_usage.prompt_tokens_sum
(count)
Total number of prompt tokens sent across all Copilot CLI requests on this day.
github_copilot.usage.organizations.cli.token_usage.avg_tokens_per_request
(count)
Average number of tokens (prompt and output) per Copilot CLI request on this day.
github_copilot.usage.organizations.pull_requests.total_reviewed
(count)
Total number of pull requests reviewed on this day.
github_copilot.usage.organizations.pull_requests.total_created
(count)
Total number of pull requests created on this day.
github_copilot.usage.organizations.pull_requests.total_created_by_copilot
(count)
Number of pull requests created by Copilot on this day.
github_copilot.usage.organizations.pull_requests.total_reviewed_by_copilot
(count)
Number of pull requests reviewed by Copilot on this day.
github_copilot.usage.organizations.pull_requests.total_merged
(count)
Total number of pull requests merged on this day.
github_copilot.usage.organizations.pull_requests.total_suggestions
(count)
Total number of pull request review suggestions generated on this day.
github_copilot.usage.organizations.pull_requests.total_applied_suggestions
(count)
Total number of pull request review suggestions that were applied.
github_copilot.usage.organizations.pull_requests.total_merged_created_by_copilot
(count)
Number of pull requests created by Copilot that were merged.
github_copilot.usage.organizations.pull_requests.total_copilot_suggestions
(count)
Number of pull request review suggestions generated by Copilot.
github_copilot.usage.organizations.pull_requests.total_copilot_applied_suggestions
(count)
Number of pull request review suggestions generated by Copilot that were applied.
github_copilot.usage.enterprises.daily_active_users
(count)
Number of unique users who used Copilot on a given day.
github_copilot.usage.enterprises.daily_active_cli_users
(count)
Number of unique users who used Copilot via the CLI on a given day.
github_copilot.usage.enterprises.weekly_active_users
(count)
Number of unique users who used Copilot during a seven-day window.
github_copilot.usage.enterprises.monthly_active_users
(count)
Number of unique users who used Copilot during the last 28 days.
github_copilot.usage.enterprises.monthly_active_chat_users
(count)
Number of unique users who used Copilot Chat during the last 28 days.
github_copilot.usage.enterprises.monthly_active_agent_users
(count)
Number of unique users who used Copilot agent mode during the last 28 days.
github_copilot.usage.enterprises.user_initiated_interaction_count
(count)
Number of explicit prompts sent to Copilot. Only counts messages or prompts actively sent to the model.
github_copilot.usage.enterprises.code_generation_activity_count
(count)
Number of distinct Copilot output events generated. Includes all generated content such as comments and docstrings.
github_copilot.usage.enterprises.code_acceptance_activity_count
(count)
Number of suggestions or code blocks accepted by users.
github_copilot.usage.enterprises.loc_suggested_to_add_sum
(count)
Total lines of code Copilot suggested to add (completions and chat; excludes agent edits).
github_copilot.usage.enterprises.loc_suggested_to_delete_sum
(count)
Total lines of code Copilot suggested to delete.
github_copilot.usage.enterprises.loc_added_sum
(count)
Total lines of code actually added to the editor (accepted completions and applied code blocks).
github_copilot.usage.enterprises.loc_deleted_sum
(count)
Total lines of code deleted from the editor (currently from agent edits).
github_copilot.usage.enterprises.by_ide.user_initiated_interaction_count
(count)
Number of explicit prompts sent to Copilot. Only counts messages or prompts actively sent to the model. Broken down by IDE.
github_copilot.usage.enterprises.by_ide.code_generation_activity_count
(count)
Number of distinct Copilot output events generated. Includes all generated content such as comments and docstrings. Broken down by IDE.
github_copilot.usage.enterprises.by_ide.code_acceptance_activity_count
(count)
Number of suggestions or code blocks accepted by users. Broken down by IDE.
github_copilot.usage.enterprises.by_ide.loc_suggested_to_add_sum
(count)
Total lines of code Copilot suggested to add (completions and chat; excludes agent edits). Broken down by IDE.
github_copilot.usage.enterprises.by_ide.loc_suggested_to_delete_sum
(count)
Total lines of code Copilot suggested to delete. Broken down by IDE.
github_copilot.usage.enterprises.by_ide.loc_added_sum
(count)
Total lines of code actually added to the editor (accepted completions and applied code blocks). Broken down by IDE.
github_copilot.usage.enterprises.by_ide.loc_deleted_sum
(count)
Total lines of code deleted from the editor (currently from agent edits). Broken down by IDE.
github_copilot.usage.enterprises.by_feature.user_initiated_interaction_count
(count)
Number of explicit prompts sent to Copilot. Only counts messages or prompts actively sent to the model. Broken down by Copilot feature.
github_copilot.usage.enterprises.by_feature.code_generation_activity_count
(count)
Number of distinct Copilot output events generated. Includes all generated content such as comments and docstrings. Broken down by Copilot feature.
github_copilot.usage.enterprises.by_feature.code_acceptance_activity_count
(count)
Number of suggestions or code blocks accepted by users. Broken down by Copilot feature.
github_copilot.usage.enterprises.by_feature.loc_suggested_to_add_sum
(count)
Total lines of code Copilot suggested to add (completions and chat; excludes agent edits). Broken down by Copilot feature.
github_copilot.usage.enterprises.by_feature.loc_suggested_to_delete_sum
(count)
Total lines of code Copilot suggested to delete. Broken down by Copilot feature.
github_copilot.usage.enterprises.by_feature.loc_added_sum
(count)
Total lines of code actually added to the editor (accepted completions and applied code blocks). Broken down by Copilot feature.
github_copilot.usage.enterprises.by_feature.loc_deleted_sum
(count)
Total lines of code deleted from the editor (currently from agent edits). Broken down by Copilot feature.
github_copilot.usage.enterprises.by_language_feature.user_initiated_interaction_count
(count)
Number of explicit prompts sent to Copilot. Only counts messages or prompts actively sent to the model. Broken down by programming language and Copilot feature.
github_copilot.usage.enterprises.by_language_feature.code_generation_activity_count
(count)
Number of distinct Copilot output events generated. Includes all generated content such as comments and docstrings. Broken down by programming language and Copilot feature.
github_copilot.usage.enterprises.by_language_feature.code_acceptance_activity_count
(count)
Number of suggestions or code blocks accepted by users. Broken down by programming language and Copilot feature.
github_copilot.usage.enterprises.by_language_feature.loc_suggested_to_add_sum
(count)
Total lines of code Copilot suggested to add (completions and chat; excludes agent edits). Broken down by programming language and Copilot feature.
github_copilot.usage.enterprises.by_language_feature.loc_suggested_to_delete_sum
(count)
Total lines of code Copilot suggested to delete. Broken down by programming language and Copilot feature.
github_copilot.usage.enterprises.by_language_feature.loc_added_sum
(count)
Total lines of code actually added to the editor (accepted completions and applied code blocks). Broken down by programming language and Copilot feature.
github_copilot.usage.enterprises.by_language_feature.loc_deleted_sum
(count)
Total lines of code deleted from the editor (currently from agent edits). Broken down by programming language and Copilot feature.
github_copilot.usage.enterprises.by_language_model.user_initiated_interaction_count
(count)
Number of explicit prompts sent to Copilot. Only counts messages or prompts actively sent to the model. Broken down by programming language and model.
github_copilot.usage.enterprises.by_language_model.code_generation_activity_count
(count)
Number of distinct Copilot output events generated. Includes all generated content such as comments and docstrings. Broken down by programming language and model.
github_copilot.usage.enterprises.by_language_model.code_acceptance_activity_count
(count)
Number of suggestions or code blocks accepted by users. Broken down by programming language and model.
github_copilot.usage.enterprises.by_language_model.loc_suggested_to_add_sum
(count)
Total lines of code Copilot suggested to add (completions and chat; excludes agent edits). Broken down by programming language and model.
github_copilot.usage.enterprises.by_language_model.loc_suggested_to_delete_sum
(count)
Total lines of code Copilot suggested to delete. Broken down by programming language and model.
github_copilot.usage.enterprises.by_language_model.loc_added_sum
(count)
Total lines of code actually added to the editor (accepted completions and applied code blocks). Broken down by programming language and model.
github_copilot.usage.enterprises.by_language_model.loc_deleted_sum
(count)
Total lines of code deleted from the editor (currently from agent edits). Broken down by programming language and model.
github_copilot.usage.enterprises.by_model_feature.user_initiated_interaction_count
(count)
Number of explicit prompts sent to Copilot. Only counts messages or prompts actively sent to the model. Broken down by model and Copilot feature.
github_copilot.usage.enterprises.by_model_feature.code_generation_activity_count
(count)
Number of distinct Copilot output events generated. Includes all generated content such as comments and docstrings. Broken down by model and Copilot feature.
github_copilot.usage.enterprises.by_model_feature.code_acceptance_activity_count
(count)
Number of suggestions or code blocks accepted by users. Broken down by model and Copilot feature.
github_copilot.usage.enterprises.by_model_feature.loc_suggested_to_add_sum
(count)
Total lines of code Copilot suggested to add (completions and chat; excludes agent edits). Broken down by model and Copilot feature.
github_copilot.usage.enterprises.by_model_feature.loc_suggested_to_delete_sum
(count)
Total lines of code Copilot suggested to delete. Broken down by model and Copilot feature.
github_copilot.usage.enterprises.by_model_feature.loc_added_sum
(count)
Total lines of code actually added to the editor (accepted completions and applied code blocks). Broken down by model and Copilot feature.
github_copilot.usage.enterprises.by_model_feature.loc_deleted_sum
(count)
Total lines of code deleted from the editor (currently from agent edits). Broken down by model and Copilot feature.
github_copilot.usage.enterprises.cli.session_count
(count)
Number of distinct Copilot CLI sessions initiated on this day.
github_copilot.usage.enterprises.cli.request_count
(count)
Total number of requests made to Copilot via the CLI on this day.
github_copilot.usage.enterprises.cli.prompt_count
(count)
Total number of user prompts or commands sent to Copilot via the CLI on this day.
github_copilot.usage.enterprises.cli.token_usage.output_tokens_sum
(count)
Total number of output tokens generated across all Copilot CLI requests on this day.
github_copilot.usage.enterprises.cli.token_usage.prompt_tokens_sum
(count)
Total number of prompt tokens sent across all Copilot CLI requests on this day.
github_copilot.usage.enterprises.cli.token_usage.avg_tokens_per_request
(count)
Average number of tokens (prompt and output) per Copilot CLI request on this day.
github_copilot.usage.enterprises.pull_requests.total_reviewed
(count)
Total number of pull requests reviewed on this day.
github_copilot.usage.enterprises.pull_requests.total_created
(count)
Total number of pull requests created on this day.
github_copilot.usage.enterprises.pull_requests.total_created_by_copilot
(count)
Number of pull requests created by Copilot on this day.
github_copilot.usage.enterprises.pull_requests.total_reviewed_by_copilot
(count)
Number of pull requests reviewed by Copilot on this day.
github_copilot.usage.enterprises.pull_requests.total_merged
(count)
Total number of pull requests merged on this day.
github_copilot.usage.enterprises.pull_requests.total_suggestions
(count)
Total number of pull request review suggestions generated on this day.
github_copilot.usage.enterprises.pull_requests.total_applied_suggestions
(count)
Total number of pull request review suggestions that were applied.
github_copilot.usage.enterprises.pull_requests.total_merged_created_by_copilot
(count)
Number of pull requests created by Copilot that were merged.
github_copilot.usage.enterprises.pull_requests.total_copilot_suggestions
(count)
Number of pull request review suggestions generated by Copilot.
github_copilot.usage.enterprises.pull_requests.total_copilot_applied_suggestions
(count)
Number of pull request review suggestions generated by Copilot that were applied.
github_copilot.usage.organizations.users.user_initiated_interaction_count
(count)
Number of explicit prompts sent to Copilot. Only counts messages or prompts actively sent to the model.
github_copilot.usage.organizations.users.code_generation_activity_count
(count)
Number of distinct Copilot output events generated. Includes all generated content such as comments and docstrings.
github_copilot.usage.organizations.users.code_acceptance_activity_count
(count)
Number of suggestions or code blocks accepted by users.
github_copilot.usage.organizations.users.loc_suggested_to_add_sum
(count)
Total lines of code Copilot suggested to add (completions and chat; excludes agent edits).
github_copilot.usage.organizations.users.loc_suggested_to_delete_sum
(count)
Total lines of code Copilot suggested to delete.
github_copilot.usage.organizations.users.loc_added_sum
(count)
Total lines of code actually added to the editor (accepted completions and applied code blocks).
github_copilot.usage.organizations.users.loc_deleted_sum
(count)
Total lines of code deleted from the editor (currently from agent edits).
github_copilot.usage.organizations.users.chat_panel_agent_mode
(count)
Number of times the user used the chat panel in agent mode.
github_copilot.usage.organizations.users.chat_panel_ask_mode
(count)
Number of times the user used the chat panel in ask mode.
github_copilot.usage.organizations.users.chat_panel_edit_mode
(count)
Number of times the user used the chat panel in edit mode.
github_copilot.usage.organizations.users.chat_panel_custom_mode
(count)
Number of times the user used the chat panel in a custom mode.
github_copilot.usage.organizations.users.chat_panel_unknown_mode
(count)
Number of times the user used the chat panel in an unknown mode.
github_copilot.usage.organizations.users.used_agent
(count)
Whether the user used Copilot agent mode on this day (1 if yes; 0 if no).
github_copilot.usage.organizations.users.used_chat
(count)
Whether the user used Copilot Chat in the IDE on this day (1 if yes; 0 if no).
github_copilot.usage.organizations.users.cli.session_count
(count)
Number of distinct Copilot CLI sessions initiated on this day.
github_copilot.usage.organizations.users.cli.request_count
(count)
Total number of requests made to Copilot via the CLI on this day.
github_copilot.usage.organizations.users.cli.token_usage.output_tokens_sum
(count)
Total number of output tokens generated across all Copilot CLI requests on this day.
github_copilot.usage.organizations.users.cli.token_usage.prompt_tokens_sum
(count)
Total number of prompt tokens sent across all Copilot CLI requests on this day.
github_copilot.usage.organizations.users.cli.token_usage.avg_tokens_per_request
(count)
Average number of tokens (prompt and output) per Copilot CLI request on this day.
github_copilot.usage.organizations.users.by_ide.user_initiated_interaction_count
(count)
Number of explicit prompts sent to Copilot. Only counts messages or prompts actively sent to the model. Broken down by IDE.
github_copilot.usage.organizations.users.by_ide.code_generation_activity_count
(count)
Number of distinct Copilot output events generated. Includes all generated content such as comments and docstrings. Broken down by IDE.
github_copilot.usage.organizations.users.by_ide.code_acceptance_activity_count
(count)
Number of suggestions or code blocks accepted by users. Broken down by IDE.
github_copilot.usage.organizations.users.by_ide.loc_suggested_to_add_sum
(count)
Total lines of code Copilot suggested to add (completions and chat; excludes agent edits). Broken down by IDE.
github_copilot.usage.organizations.users.by_ide.loc_suggested_to_delete_sum
(count)
Total lines of code Copilot suggested to delete. Broken down by IDE.
github_copilot.usage.organizations.users.by_ide.loc_added_sum
(count)
Total lines of code actually added to the editor (accepted completions and applied code blocks). Broken down by IDE.
github_copilot.usage.organizations.users.by_ide.loc_deleted_sum
(count)
Total lines of code deleted from the editor (currently from agent edits). Broken down by IDE.
github_copilot.usage.organizations.users.by_feature.user_initiated_interaction_count
(count)
Number of explicit prompts sent to Copilot. Only counts messages or prompts actively sent to the model. Broken down by Copilot feature.
github_copilot.usage.organizations.users.by_feature.code_generation_activity_count
(count)
Number of distinct Copilot output events generated. Includes all generated content such as comments and docstrings. Broken down by Copilot feature.
github_copilot.usage.organizations.users.by_feature.code_acceptance_activity_count
(count)
Number of suggestions or code blocks accepted by users. Broken down by Copilot feature.
github_copilot.usage.organizations.users.by_feature.loc_suggested_to_add_sum
(count)
Total lines of code Copilot suggested to add (completions and chat; excludes agent edits). Broken down by Copilot feature.
github_copilot.usage.organizations.users.by_feature.loc_suggested_to_delete_sum
(count)
Total lines of code Copilot suggested to delete. Broken down by Copilot feature.
github_copilot.usage.organizations.users.by_feature.loc_added_sum
(count)
Total lines of code actually added to the editor (accepted completions and applied code blocks). Broken down by Copilot feature.
github_copilot.usage.organizations.users.by_feature.loc_deleted_sum
(count)
Total lines of code deleted from the editor (currently from agent edits). Broken down by Copilot feature.
github_copilot.usage.organizations.users.by_language_feature.user_initiated_interaction_count
(count)
Number of explicit prompts sent to Copilot. Only counts messages or prompts actively sent to the model. Broken down by programming language and Copilot feature.
github_copilot.usage.organizations.users.by_language_feature.code_generation_activity_count
(count)
Number of distinct Copilot output events generated. Includes all generated content such as comments and docstrings. Broken down by programming language and Copilot feature.
github_copilot.usage.organizations.users.by_language_feature.code_acceptance_activity_count
(count)
Number of suggestions or code blocks accepted by users. Broken down by programming language and Copilot feature.
github_copilot.usage.organizations.users.by_language_feature.loc_suggested_to_add_sum
(count)
Total lines of code Copilot suggested to add (completions and chat; excludes agent edits). Broken down by programming language and Copilot feature.
github_copilot.usage.organizations.users.by_language_feature.loc_suggested_to_delete_sum
(count)
Total lines of code Copilot suggested to delete. Broken down by programming language and Copilot feature.
github_copilot.usage.organizations.users.by_language_feature.loc_added_sum
(count)
Total lines of code actually added to the editor (accepted completions and applied code blocks). Broken down by programming language and Copilot feature.
github_copilot.usage.organizations.users.by_language_feature.loc_deleted_sum
(count)
Total lines of code deleted from the editor (currently from agent edits). Broken down by programming language and Copilot feature.
github_copilot.usage.organizations.users.by_language_model.user_initiated_interaction_count
(count)
Number of explicit prompts sent to Copilot. Only counts messages or prompts actively sent to the model. Broken down by programming language and model.
github_copilot.usage.organizations.users.by_language_model.code_generation_activity_count
(count)
Number of distinct Copilot output events generated. Includes all generated content such as comments and docstrings. Broken down by programming language and model.
github_copilot.usage.organizations.users.by_language_model.code_acceptance_activity_count
(count)
Number of suggestions or code blocks accepted by users. Broken down by programming language and model.
github_copilot.usage.organizations.users.by_language_model.loc_suggested_to_add_sum
(count)
Total lines of code Copilot suggested to add (completions and chat; excludes agent edits). Broken down by programming language and model.
github_copilot.usage.organizations.users.by_language_model.loc_suggested_to_delete_sum
(count)
Total lines of code Copilot suggested to delete. Broken down by programming language and model.
github_copilot.usage.organizations.users.by_language_model.loc_added_sum
(count)
Total lines of code actually added to the editor (accepted completions and applied code blocks). Broken down by programming language and model.
github_copilot.usage.organizations.users.by_language_model.loc_deleted_sum
(count)
Total lines of code deleted from the editor (currently from agent edits). Broken down by programming language and model.
github_copilot.usage.organizations.users.by_model_feature.user_initiated_interaction_count
(count)
Number of explicit prompts sent to Copilot. Only counts messages or prompts actively sent to the model. Broken down by model and Copilot feature.
github_copilot.usage.organizations.users.by_model_feature.code_generation_activity_count
(count)
Number of distinct Copilot output events generated. Includes all generated content such as comments and docstrings. Broken down by model and Copilot feature.
github_copilot.usage.organizations.users.by_model_feature.code_acceptance_activity_count
(count)
Number of suggestions or code blocks accepted by users. Broken down by model and Copilot feature.
github_copilot.usage.organizations.users.by_model_feature.loc_suggested_to_add_sum
(count)
Total lines of code Copilot suggested to add (completions and chat; excludes agent edits). Broken down by model and Copilot feature.
github_copilot.usage.organizations.users.by_model_feature.loc_suggested_to_delete_sum
(count)
Total lines of code Copilot suggested to delete. Broken down by model and Copilot feature.
github_copilot.usage.organizations.users.by_model_feature.loc_added_sum
(count)
Total lines of code actually added to the editor (accepted completions and applied code blocks). Broken down by model and Copilot feature.
github_copilot.usage.organizations.users.by_model_feature.loc_deleted_sum
(count)
Total lines of code deleted from the editor (currently from agent edits). Broken down by model and Copilot feature.
github_copilot.usage.enterprises.users.user_initiated_interaction_count
(count)
Number of explicit prompts sent to Copilot. Only counts messages or prompts actively sent to the model.
github_copilot.usage.enterprises.users.code_generation_activity_count
(count)
Number of distinct Copilot output events generated. Includes all generated content such as comments and docstrings.
github_copilot.usage.enterprises.users.code_acceptance_activity_count
(count)
Number of suggestions or code blocks accepted by users.
github_copilot.usage.enterprises.users.loc_suggested_to_add_sum
(count)
Total lines of code Copilot suggested to add (completions and chat; excludes agent edits).
github_copilot.usage.enterprises.users.loc_suggested_to_delete_sum
(count)
Total lines of code Copilot suggested to delete.
github_copilot.usage.enterprises.users.loc_added_sum
(count)
Total lines of code actually added to the editor (accepted completions and applied code blocks).
github_copilot.usage.enterprises.users.loc_deleted_sum
(count)
Total lines of code deleted from the editor (currently from agent edits).
github_copilot.usage.enterprises.users.chat_panel_agent_mode
(count)
Number of times the user used the chat panel in agent mode.
github_copilot.usage.enterprises.users.chat_panel_ask_mode
(count)
Number of times the user used the chat panel in ask mode.
github_copilot.usage.enterprises.users.chat_panel_edit_mode
(count)
Number of times the user used the chat panel in edit mode.
github_copilot.usage.enterprises.users.chat_panel_custom_mode
(count)
Number of times the user used the chat panel in a custom mode.
github_copilot.usage.enterprises.users.chat_panel_unknown_mode
(count)
Number of times the user used the chat panel in an unknown mode.
github_copilot.usage.enterprises.users.used_agent
(count)
Whether the user used Copilot agent mode on this day (1 if yes; 0 if no).
github_copilot.usage.enterprises.users.used_chat
(count)
Whether the user used Copilot Chat in the IDE on this day (1 if yes; 0 if no).
github_copilot.usage.enterprises.users.cli.session_count
(count)
Number of distinct Copilot CLI sessions initiated on this day.
github_copilot.usage.enterprises.users.cli.request_count
(count)
Total number of requests made to Copilot via the CLI on this day.
github_copilot.usage.enterprises.users.cli.token_usage.output_tokens_sum
(count)
Total number of output tokens generated across all Copilot CLI requests on this day.
github_copilot.usage.enterprises.users.cli.token_usage.prompt_tokens_sum
(count)
Total number of prompt tokens sent across all Copilot CLI requests on this day.
github_copilot.usage.enterprises.users.cli.token_usage.avg_tokens_per_request
(count)
Average number of tokens (prompt and output) per Copilot CLI request on this day.
github_copilot.usage.enterprises.users.by_ide.user_initiated_interaction_count
(count)
Number of explicit prompts sent to Copilot. Only counts messages or prompts actively sent to the model. Broken down by IDE.
github_copilot.usage.enterprises.users.by_ide.code_generation_activity_count
(count)
Number of distinct Copilot output events generated. Includes all generated content such as comments and docstrings. Broken down by IDE.
github_copilot.usage.enterprises.users.by_ide.code_acceptance_activity_count
(count)
Number of suggestions or code blocks accepted by users. Broken down by IDE.
github_copilot.usage.enterprises.users.by_ide.loc_suggested_to_add_sum
(count)
Total lines of code Copilot suggested to add (completions and chat; excludes agent edits). Broken down by IDE.
github_copilot.usage.enterprises.users.by_ide.loc_suggested_to_delete_sum
(count)
Total lines of code Copilot suggested to delete. Broken down by IDE.
github_copilot.usage.enterprises.users.by_ide.loc_added_sum
(count)
Total lines of code actually added to the editor (accepted completions and applied code blocks). Broken down by IDE.
github_copilot.usage.enterprises.users.by_ide.loc_deleted_sum
(count)
Total lines of code deleted from the editor (currently from agent edits). Broken down by IDE.
github_copilot.usage.enterprises.users.by_feature.user_initiated_interaction_count
(count)
Number of explicit prompts sent to Copilot. Only counts messages or prompts actively sent to the model. Broken down by Copilot feature.
github_copilot.usage.enterprises.users.by_feature.code_generation_activity_count
(count)
Number of distinct Copilot output events generated. Includes all generated content such as comments and docstrings. Broken down by Copilot feature.
github_copilot.usage.enterprises.users.by_feature.code_acceptance_activity_count
(count)
Number of suggestions or code blocks accepted by users. Broken down by Copilot feature.
github_copilot.usage.enterprises.users.by_feature.loc_suggested_to_add_sum
(count)
Total lines of code Copilot suggested to add (completions and chat; excludes agent edits). Broken down by Copilot feature.
github_copilot.usage.enterprises.users.by_feature.loc_suggested_to_delete_sum
(count)
Total lines of code Copilot suggested to delete. Broken down by Copilot feature.
github_copilot.usage.enterprises.users.by_feature.loc_added_sum
(count)
Total lines of code actually added to the editor (accepted completions and applied code blocks). Broken down by Copilot feature.
github_copilot.usage.enterprises.users.by_feature.loc_deleted_sum
(count)
Total lines of code deleted from the editor (currently from agent edits). Broken down by Copilot feature.
github_copilot.usage.enterprises.users.by_language_feature.user_initiated_interaction_count
(count)
Number of explicit prompts sent to Copilot. Only counts messages or prompts actively sent to the model. Broken down by programming language and Copilot feature.
github_copilot.usage.enterprises.users.by_language_feature.code_generation_activity_count
(count)
Number of distinct Copilot output events generated. Includes all generated content such as comments and docstrings. Broken down by programming language and Copilot feature.
github_copilot.usage.enterprises.users.by_language_feature.code_acceptance_activity_count
(count)
Number of suggestions or code blocks accepted by users. Broken down by programming language and Copilot feature.
github_copilot.usage.enterprises.users.by_language_feature.loc_suggested_to_add_sum
(count)
Total lines of code Copilot suggested to add (completions and chat; excludes agent edits). Broken down by programming language and Copilot feature.
github_copilot.usage.enterprises.users.by_language_feature.loc_suggested_to_delete_sum
(count)
Total lines of code Copilot suggested to delete. Broken down by programming language and Copilot feature.
github_copilot.usage.enterprises.users.by_language_feature.loc_added_sum
(count)
Total lines of code actually added to the editor (accepted completions and applied code blocks). Broken down by programming language and Copilot feature.
github_copilot.usage.enterprises.users.by_language_feature.loc_deleted_sum
(count)
Total lines of code deleted from the editor (currently from agent edits). Broken down by programming language and Copilot feature.
github_copilot.usage.enterprises.users.by_language_model.user_initiated_interaction_count
(count)
Number of explicit prompts sent to Copilot. Only counts messages or prompts actively sent to the model. Broken down by programming language and model.
github_copilot.usage.enterprises.users.by_language_model.code_generation_activity_count
(count)
Number of distinct Copilot output events generated. Includes all generated content such as comments and docstrings. Broken down by programming language and model.
github_copilot.usage.enterprises.users.by_language_model.code_acceptance_activity_count
(count)
Number of suggestions or code blocks accepted by users. Broken down by programming language and model.
github_copilot.usage.enterprises.users.by_language_model.loc_suggested_to_add_sum
(count)
Total lines of code Copilot suggested to add (completions and chat; excludes agent edits). Broken down by programming language and model.
github_copilot.usage.enterprises.users.by_language_model.loc_suggested_to_delete_sum
(count)
Total lines of code Copilot suggested to delete. Broken down by programming language and model.
github_copilot.usage.enterprises.users.by_language_model.loc_added_sum
(count)
Total lines of code actually added to the editor (accepted completions and applied code blocks). Broken down by programming language and model.
github_copilot.usage.enterprises.users.by_language_model.loc_deleted_sum
(count)
Total lines of code deleted from the editor (currently from agent edits). Broken down by programming language and model.
github_copilot.usage.enterprises.users.by_model_feature.user_initiated_interaction_count
(count)
Number of explicit prompts sent to Copilot. Only counts messages or prompts actively sent to the model. Broken down by model and Copilot feature.
github_copilot.usage.enterprises.users.by_model_feature.code_generation_activity_count
(count)
Number of distinct Copilot output events generated. Includes all generated content such as comments and docstrings. Broken down by model and Copilot feature.
github_copilot.usage.enterprises.users.by_model_feature.code_acceptance_activity_count
(count)
Number of suggestions or code blocks accepted by users. Broken down by model and Copilot feature.
github_copilot.usage.enterprises.users.by_model_feature.loc_suggested_to_add_sum
(count)
Total lines of code Copilot suggested to add (completions and chat; excludes agent edits). Broken down by model and Copilot feature.
github_copilot.usage.enterprises.users.by_model_feature.loc_suggested_to_delete_sum
(count)
Total lines of code Copilot suggested to delete. Broken down by model and Copilot feature.
github_copilot.usage.enterprises.users.by_model_feature.loc_added_sum
(count)
Total lines of code actually added to the editor (accepted completions and applied code blocks). Broken down by model and Copilot feature.
github_copilot.usage.enterprises.users.by_model_feature.loc_deleted_sum
(count)
Total lines of code deleted from the editor (currently from agent edits). Broken down by model and Copilot feature.

Service Checks

GitHub Copilot does not include any service checks.

Events

GitHub Copilot does not include any events.

Troubleshooting

Metrics aren’t appearing

If you’re seeing errors when fetching data from the metrics endpoint, such as /orgs/{org}/copilot/metrics, verify that the Copilot Metrics API policy is enabled in your GitHub organization.

To enable the Copilot Metrics API policy:

  1. Go to your GitHub organization settings.
  2. In the left sidebar, select Copilot > Policies.
  3. Find the Copilot Metrics API section, and click Enable.

This policy is required for Datadog to retrieve Copilot usage metrics.

Still need help?

Contact Datadog support.

Further Reading

お役に立つドキュメント、リンクや記事: