Skip to content

[Feature][gh-copilot] Expose newly available GitHub Copilot metrics in CLI #8846

@fool65c

Description

@fool65c

Search before asking

  • I had searched in the issues and found no similar feature requirement.

Use case

The gh-copilot plugin currently ingests organization/enterprise-level aggregate metrics, per-user daily activity counts, and breakdowns by feature, IDE, and language. However, several metric dimensions available in the GitHub Copilot Metrics Reports API are not collected, leaving gaps that prevent fully analyzing Copilot adoption and ROI.

Description

The following metrics are available in the GitHub Copilot Metrics Reports API (users-1-day and enterprise endpoints) but are not currently collected by the gh-copilot plugin:

CLI Metrics (totals_by_cli)
CLI/terminal usage is a fast-growing Copilot surface. The API provides per-user per-day CLI metrics that are not collected:

Field Type Description
session_count int Number of CLI sessions
request_count int Number of CLI requests
prompt_count int Number of prompts sent via CLI
token_usage.output_tokens_sum bigint Total output tokens consumed
token_usage.prompt_tokens_sum bigint Total prompt/input tokens consumed
token_usage.avg_tokens_per_request float Average tokens per request
last_known_cli_version.cli_version string CLI version (e.g. "1.0.8")
last_known_cli_version.sampled_at timestamp When version was last observed

Related issues

#8843 -- GitHub App authentication for gh-copilot

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    add-a-pluginThis issue is to add a plugincomponent/pluginsThis issue or PR relates to pluginstype/feature-requestThis issue is a proposal for something new

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions