🚀GitHub Copilot Metrics API GA release now available #141071
Replies: 45 comments 40 replies
-
|
@Akash1134 This looks great, would love to see more detailed metrics about Copilot usage and engagement. Question: it looks like this is disabled for my org, do I need an enterprise owner to enable? The docs are a little light but it sounds like if I get an enterprise owner to enable the Copilot Metrics API for the enterprise I can then get them for my org?
|
Beta Was this translation helpful? Give feedback.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
-
|
Thanks for the GA, it looks more detailed, and indeeed more complex :-) for the GA metric route, I was doubting whether we still need an aggregate high-leve total_code summary for each day, maybe per day per language? currently, for the copilot_ide_code_completions part, it only has one direct KV which is "total_engaged_users": 20. in order to get the total_code_* metircs as before, we have to check the breakdown data, which is by editor/models/language, the merge them togeterh. based on my observation, the total_code_* data per day per language is a strong requirement. so it is better to add it. thanks for your consideration. like currently, for the lanuages part under "copilot_ide_code_completions", it only display the total_engaged_users part, is it possible to add total_code_* part for each language? thanks. "copilot_ide_code_completions": { |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
|
Hey, "Your organization has disabled Copilot Metrics API access. Enable it in GitHub settings to access this endpoint." In github settings I'm unable to enable access to the metrics API as admin. I see a link to a doc on how for github pre release license terms But don't actually see how to get my enterprise access to these pre release features. |
Beta Was this translation helpful? Give feedback.
-
|
Accessing GitHub Copilot Usage API with a Business Account – Is it supported? Question: @Akash1134 / Team Hello everyone, I’m looking to track GitHub Copilot usage metrics through the API for our organization, which currently has a GitHub Business license. Specifically, I’d like to use the following endpoint: /enterprises/{enterprise}/copilot/usage Before diving in, I wanted to confirm: does the GitHub Business license provide access to the Copilot usage API, or is this feature exclusively available for GitHub Enterprise accounts? If it’s enterprise-only, are there any alternative methods for tracking Copilot usage in a Business account? Thanks for any insights or guidance! |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
|
how to access new metrics?
I get old data for also the link to the documentation doesn't work |
Beta Was this translation helpful? Give feedback.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as a violation of GitHub Acceptable Use Policies
-
|
we found some data issues, the total_suggested is also 0. though there are accepated, can you double check the data quality? |
Beta Was this translation helpful? Give feedback.
This comment was marked as spam.
This comment was marked as spam.
-
|
I tried to use the billing/seats endpoint and seems like the "assigning_team" of member is always missing, trying to export csv from the interface also show no team, anyone has similar problem? |
Beta Was this translation helpful? Give feedback.
-
|
Hello, Is this intentional or am I just not looking where I should? |
Beta Was this translation helpful? Give feedback.
-
|
i am the owner of org, but i still can not enable it, the button is gray |
Beta Was this translation helpful? Give feedback.
-
|
I am using the Copilot Metrics API to fetch data, but I have noticed that it only allows fetching up to 28 days of historical data. However, I need to access the complete historical data using this API. When I tried using the Copilot Usage API to retrieve the historical data, I encountered issues. Can you help me understand whether it is possible to fetch the complete historical data, or if there are any limitations? |
Beta Was this translation helpful? Give feedback.
-
|
Does the PowerBI dashboard allow you to see data by team? |
Beta Was this translation helpful? Give feedback.
-
|
Hi, We've setup the GitHub Copilot Metrics PowerBI app for our GitHub enterprise. In our enterprise we have two organizations. This is reflected in the app however it seems the Organization slicer on the 'Adoption Metrics', 'Usage Metrics', and 'Data Tables' pages doesn't filter the data. When switching between our organizations using the slicer our data is not filtered. However on the 'Org Usage Metrics' page the data is filtered when using the organization slicer. Is this a known issue and are there plans to fix it? Thank you |
Beta Was this translation helpful? Give feedback.
-
|
hello everyone, not clear for me the difference about total_active_users (copilot/metrics), active_this_cycle/inactive_this_cycle (copilot/billing) and last_activity_at (billing/seats). thanks in advance |
Beta Was this translation helpful? Give feedback.
-
|
hi at all, I have another question. the response schema of enterprises/ENTERPRISE/copilot/metrics and ORG/copilot/metrics produce the same result. how to differentiate the organization inside the enterprise structure? thanks in advance |
Beta Was this translation helpful? Give feedback.
-
|
@Akash1134 Your PowerBI app is broken since Github updated the advanced_security endpoint. See: https://github.com/orgs/community/discussions/145645#discussioncomment-12805328 |
Beta Was this translation helpful? Give feedback.
-
|
Every 28 days my Copilot Metrics fails to refresh the data and it requires it to be removed and reinstalled to continue getting the data from my environment. I've verified the PAT used is working for other functions and hasn't changed and the error I receive is: Data source error: DataSource.Error: Web.Contents failed to get contents from 'https://api.github.com/enterprises/vantiva-emu/settings/billing/advanced-security' (422): Unprocessable Entity. Microsoft.Data.Mashup.ErrorCode = 10117. DataSourceKind = Web. DataSourcePath = https://api.github.com/enterprises/vantiva-emu/settings/billing/advanced-security. Url = https://api.github.com/enterprises/vantiva-emu/settings/billing/advanced-security. . The exception was raised by the IDbCommand interface. This tool provides no value if I have to reinstall once a month. Please provide a solution. |
Beta Was this translation helpful? Give feedback.
-
|
Everything was working, but then stopped. I tried updating the app, but data refresh still failed. Yesterday, I tried installing the app from scratch, but it won't connect to the data. I am not sure why or what's happening since there are no error messages. |
Beta Was this translation helpful? Give feedback.
-
|
In Power BI Desktop it is loading the data, but when it publish to the web it is giving the following error.
Please provide a solution. |
Beta Was this translation helpful? Give feedback.
-
|
Error fetching data for this visual The expression referenced a relationship between 'CopilotEnterpriseStats'[enterprise] and 'EnterpriseLicenses'[enterprise], which does not hold any data because it needs to be recalculated. |
Beta Was this translation helpful? Give feedback.
-
|
Amazing, thanks for the update 😁👍❤️ |
Beta Was this translation helpful? Give feedback.
-
|
Hi, this API is great ! I have a couple of questions / suggestions:
Another thing that we (And I assume a lot of others) will find valuable too is metrics about actual code integration - as in: We're tracking our teams usage and correlate the AI adoption trend with other metrics under the 'velocity' or 'quality' umbrella and the above will help us a great deal. |
Beta Was this translation helpful? Give feedback.
-
|
Hi, very useful info about the user's usage. If I understand well these new rest api integrate the previous. Thanks |
Beta Was this translation helpful? Give feedback.






Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
🆕 Update: Feb 2025
Beginning February 2025, the beta Copilot
/usageendpoints will be deprecated. See details🚀 Now Available: GitHub Copilot Metrics API in General Availability! 🚀
We’re thrilled to introduce the GA release of the GitHub Copilot Metrics API, now open to all GitHub Copilot Business and GitHub Copilot Enterprise users. This release is packed with features to give you greater visibility into Copilot's impact across your development workflow. Ready to dive into the data?
📊 What’s the GitHub Copilot Metrics API?
Imagine having detailed insights into how Copilot is being used across your enterprise. The Metrics API brings this to life by providing you with data on Copilot's usage—across teams, organizations, and individual features. Perfect for tracking trends, understanding usage patterns, and integrating with your own dashboards, the Metrics API helps you see where Copilot is adding value and how you can optimize its use.
🎉 What's New in the GA Release?
Here’s a peek at what’s included:
With data loaded daily (UTC) and summarized by day, you can view patterns in real-time and make more data-informed decisions.
🤔 Will My Current Reporting Be Affected?
To make the transition smooth, we’ve kept the Beta route online through the end of the year. This means any current reporting tied to the Beta API will continue without interruption, while you explore the newly revised schema and expanded metrics in the GA version.
📚 Resources to Get Started
💬 Your Turn!
How are you planning to use the Copilot Metrics API? What specific metrics would give you the best insight into Copilot's impact on your projects? Whether it’s tracking usage, surfacing adoption trends, or something else entirely, we’d love to hear your ideas. Drop your thoughts below and let’s shape the future of Copilot analytics together! 👇
Beta Was this translation helpful? Give feedback.
All reactions