{"id":18817012,"url":"https://github.com/microsoft/copilot-metrics-dashboard","last_synced_at":"2025-04-07T19:13:11.624Z","repository":{"id":249933520,"uuid":"832993046","full_name":"microsoft/copilot-metrics-dashboard","owner":"microsoft","description":"The GitHub Copilot Metrics Dashboard is a solution accelerator designed to visualize metrics from GitHub Copilot using the GitHub Copilot Metrics API and GitHub Copilot User Management API.","archived":false,"fork":false,"pushed_at":"2025-03-12T23:02:26.000Z","size":1095,"stargazers_count":68,"open_issues_count":6,"forks_count":32,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-03-30T21:37:55.370Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/microsoft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":"SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-24T06:34:38.000Z","updated_at":"2025-03-28T14:31:41.000Z","dependencies_parsed_at":"2025-03-12T10:35:05.092Z","dependency_job_id":null,"html_url":"https://github.com/microsoft/copilot-metrics-dashboard","commit_stats":null,"previous_names":["microsoft/copilot-metrics-dashboard"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fcopilot-metrics-dashboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fcopilot-metrics-dashboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fcopilot-metrics-dashboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fcopilot-metrics-dashboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/microsoft","download_url":"https://codeload.github.com/microsoft/copilot-metrics-dashboard/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247713258,"owners_count":20983683,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T00:08:39.372Z","updated_at":"2025-04-07T19:13:11.190Z","avatar_url":"https://github.com/microsoft.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# GitHub Copilot Metrics - Dashboard\n\n1. [Introduction](#introduction)\n2. [Deploy to Azure](#deploy-to-azure)\n\n# Introduction\n\nThe GitHub Copilot Metrics Dashboard is a solution accelerator designed to visualize metrics from GitHub Copilot using the [GitHub Copilot Metrics API](https://docs.github.com/en/enterprise-cloud@latest/rest/copilot/copilot-metrics?apiVersion=2022-11-28) and [GitHub Copilot User Management API](https://docs.github.com/en/enterprise-cloud@latest/rest/copilot/copilot-user-management?apiVersion=2022-11-28).\n\n## Dashboard\n\n![GitHub Copilot Metrics - Dashboard](/docs/dashboard.jpeg \"GitHub Copilot Metrics - Dashboard\")\n\nThe dashboard showcases a range of features:\n\n**Filters:**\nAbility to filter metrics by date range, languages, code editors and visualise data by time frame (daily, weekly, monthly).\n\n**Acceptance Average:** Percentage of suggestions accepted by users for given date range and group by time range (daily, weekly, monthly).\n\n**Active Users:** Number of active users for the last cycle.\n\n**Adoption Rate:** Number of active users who are using GitHub Copilot in relation to the total number of licensed users.\n\n**Seat Information:** Number of active, inactive, and total users.\n\n**Language:** Breakdown of languages which can be used to filter the data.\n\n**Code Editors:** Breakdown of code editors which can be used to filter the data.\n\n## Seats\n\nSeats feature shows the list of user having a Copilot licence assigned.\nThis feature is can be enabled or disabled by setting the `ENABLE_SEATS_FEATURE` environment variable to `true` or `false` respectively (default value is `true`).\n\n\u003e Assigned seats ingestion is enabled by default, is possbile to disable by setting the `ENABLE_SEATS_INGESTION` environment variable to `false`\n\n# Deploy to Azure\n\nThe solution accelerator is a web application that uses Azure App Service, Azure Functions, Azure Cosmos DB, Azure Storage and Azure Key Vault. The deployment template will automatically populate the required environment variables in Azure Key Vault and configure the application settings in Azure App Service and Azure Functions.\n![GitHub Copilot Metrics - Architecture ](/docs/CopilotDashboard.png \"GitHub Copilot Metrics - Architecture\")\n\nThe following steps will automatically provision Azure resources and deploy the solution accelerator to Azure App Service and Azure Functions using the Azure Developer CLI.\n\n\u003e [!IMPORTANT]\n\u003e 🚨🚨🚨 You must setup [authentication](https://learn.microsoft.com/en-us/azure/app-service/overview-authentication-authorization) using the built-in authentication and authorization capabilities of Azure App Service.\n\n#### Prerequisites\n\nYou will be prompted to provide the following information:\n\n```\n- GitHub Enterprise name\n- GitHub Organization name\n- GitHub Token\n- GitHub API Scope\n- Team Names (if you choose to use the new metrics API)\n```\n\n\u003e More details here for the [GA Metrics API](https://github.blog/changelog/2024-10-30-github-copilot-metrics-api-ga-release-now-available/)\n\n\u003e Team Names must be a valid JSON array, e.g. ``[\"team-1\", \"team-2]``\n\nGitHub API Scope define the GITHUB_API_SCOPE environment variable that can be \"enterprise\" or \"organization\". It is used to define at which level the GitHub APIs will gather data. If not specified, the default value is \"organization\".\n\n1. Download the [Azure Developer CLI](https://learn.microsoft.com/en-us/azure/developer/azure-developer-cli/overview)\n2. If you have not cloned this repo, run `azd init -t microsoft/copilot-metrics-dashboard`. If you have cloned this repo, just run 'azd init' from the repo root directory.\n3. Run `azd up` to provision and deploy the application\n\n```pwsh\nazd init -t microsoft/copilot-metrics-dashboard\nazd up\n\n# if you are wanting to see logs run with debug flag\nazd up --debug\n```\n\n# Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.\n\nWhen you submit a pull request, a CLA bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\n# Trademarks\n\nThis project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft\ntrademarks or logos is subject to and must follow\n[Microsoft\u0026#39;s Trademark \u0026amp; Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general).\nUse of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.\nAny use of third-party trademarks or logos are subject to those third-party's policies.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrosoft%2Fcopilot-metrics-dashboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicrosoft%2Fcopilot-metrics-dashboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrosoft%2Fcopilot-metrics-dashboard/lists"}