Server Statistics can help you anticipate the needs of your organization, understand how your team works, and show the value you get from GitHub Enterprise Server.
Once enabled, Server Statistics collects aggregate data on how much certain features are used on your instance over time. Unlike other Admin Stats API endpoints, which only return data for the last day, Server Statistics provides historical data of all Server Statistics metrics collected since the day you enabled the feature. For more information, see "Enabling Server Statistics for your enterprise."
When you enable Server Statistics, you're helping to build a better GitHub. The aggregated data you'll provide gives us insights into how GitHub adds value to our customers. This information allows GitHub to make better and more informed product decisions, ultimately benefiting you.
We respect your data. We will never transmit data from your GitHub Enterprise Server instance unless you have first given us permission to do so.
We collect no personal data. We also don't collect any GitHub content, such as code, issues, comments, or pull request content.
Only owners of the connected enterprise account or organization on GitHub Enterprise Cloud can access the data.
Only certain aggregate metrics are collected on repositories, issues, pull requests, and other features. To see the list of aggregate metrics collected, see "Server Statistics data collected."
Any updates to the collected metrics will happen in future feature releases of GitHub Enterprise Server and will be described in the GitHub Enterprise Server release notes. In addition, we will update this article with all metric updates.
For a better understanding of how we store and secure Server Statistics data, see "GitHub Security."
GitHub collects Server Statistics data for as long as your GitHub Enterprise Server license is active and the Server Statistics feature is enabled.
If you would like to delete your data, you may do so by contacting GitHub Support, your GitHub account representative, or your Customer Success Manager. Generally, we delete data in the timeframe specified in our privacy statement. For more information, see GitHub's privacy statement in the GitHub.com documentation.
As an organization owner or enterprise owner on GitHub Enterprise Cloud, you can access Server Statistics data by exporting the data in a CSV or JSON file or through the Server Statistics REST API. For more information, see "Requesting Server Statistics using the REST API" or "Exporting Server Statistics."
You can disable the Server Statistics feature at any time. For more information, see "Enabling Server Statistics for your enterprise."
After you enable Server Statistics, metrics are collected through a daily job that runs on your GitHub Enterprise Server instance. The aggregate metrics are stored on your organization or enterprise account on GitHub Enterprise Cloud and are not stored on your GitHub Enterprise Server instance.
The following aggregate metrics will be collected and transmitted on a daily basis and represent the total counts for the day.
|A||Array of GitHub Connect features that are enabled for your instance (see "About GitHub Connect" )|
|B||The hostname for your instance|
|C||The length of time a user must be inactive to be considered dormant|
|D||Number of dormant user accounts|
|E||The version of GitHub Enterprise Server that your instance is running|
|F||The UUID generated for your instance|
|G||The date the metrics were collected|
|H||The version of the database schema used to store this data|
|I||Number of comments on commits|
|J||Number of comments on gists|
|K||Number of comments on issues|
|L||Number of comments on pull requests|
|M||Number of gists (both secret and public)|
|N||Number of secret gists|
|O||Number of public gists|
|P||Number of pre-receive hooks (both active and inactive)|
|Q||Number of active pre-receive hooks|
|R||Number of inactive pre-receive hooks|
|S||Number of issues (both open and closed)|
|T||Number of open issues|
|U||Number of closed issues|
|V||Number of milestones (both open and closed)|
|W||Number of open milestones|
|X||Number of closed milestones|
|Y||Number of organizations (both enabled and disabled)|
|Z||Number of disabled organizations|
|AA||Number of teams|
|AB||Number of team members|
|AC||Number of GitHub Pages sites|
|AD||Number of pull requests|
|AE||Number of merged pull requests|
|AF||Number of pull requests that are currently mergeable|
|AG||Number of pull requests that are currently unmergeable|
|AH||Number of repositories (both upstream repositories and forks)|
|AI||Number of upstream repositories|
|AJ||Number of forks|
|AK||Number of repositories owned by organizations|
|AL||Number of pushes to repositories|
|AM||Number of wikis|
|AN||Number of user accounts|
|AO||Number of user accounts that are site administrators|
|AP||Number of user accounts that are suspended|
|AQ||Number of repositories using GitHub Actions|
|AR||Percentage of repositories using GitHub Actions|
|AS||Whether GitHub Packages with repository-scoped packages is enabled for your GitHub Enterprise Server instance|
|AT||Whether GitHub Packages with granular permissions is enabled for your GitHub Enterprise Server instance|
|AU||Whether Docker is enabled for GitHub Packages|
|AV||Number of published Docker images (private, public, and internal)|
|AW||Number of private Docker images|
|AX||Number of public Docker images|
|AY||Number of internal Docker images|
|AZ||Number of Docker images owned by users|
|BA||Number of Docker images owned by organizations|
|BB||Number of downloads of Docker images|
|BC||Number of Docker images updated|
|BD||Number of Docker images deleted|
|BE||Number of Docker images created|
|BF||Whether Maven is enabled for GitHub Packages|
|BG||Number of published Maven packages (private, public, and internal)|
|BH||Number of private Maven packages|
|BI||Number of public Maven packages|
|BJ||Number of internal Maven packages|
|BK||Number of Maven packages owned by user accounts|
|BL||Number of Maven packages owned by organizations|
|BM||Number of downloads of Maven packages|
|BN||Number of Maven packages updated|
|BO||Number of Maven packages deleted|
|BP||Number of Maven packages created|
|BQ||Whether npm is enabled for GitHub Packages|
|BR||Number of published npm packages (private, public, and internal)|
|BS||Number of private npm packages|
|BT||Number of public npm packages|
|BU||Number of internal npm packages|
|BV||Number of npm packages owned by user accounts|
|BW||Number of npm packages owned by organizations|
|BX||Number of downloads of npm packages|
|BY||Number of npm packages updated|
|BZ||Number of npm packages deleted|
|CA||Number of npm packages created|
|CB||Whether NuGet is enabled for GitHub Packages|
|CC||Number of published NuGet packages (private, public, and internal)|
|CD||Number of private NuGet packages|
|CE||Number of public NuGet packages|
|CF||Number of internal NuGet packages|
|CG||Number of NuGet packages owned by user accounts|
|CH||Number of NuGet packages owned by organizations|
|CI||Number of downloads of Nuget packages|
|CJ||Number of NuGet packages updated|
|CK||Number of NuGet packages deleted|
|CL||Number of NuGet packages created|
|CM||Whether Rubygems is enabled for GitHub Packages|
|CN||Number of published Rubygems packages (private, public, and internal)|
|CO||Number of private Rubygems packages|
|CP||Number of public Rubygems packages|
|CQ||Number of internal Rubygems packaes|
|CR||Number of Rubygems packages owned by user accounts|
|CS||Number of Rubygems packages owned by organizations|
|CT||Number of downloads of Rubygems packages|
|CU||Number of Rubygems packages updated|
|CV||Number of Rubygems packages deleted|
|CW||Number of Rubygems packages created|
|CX||Whether Container registry is enabled for GitHub Packages|
|CY||Number of published container images (private, public, and internal)|
|CZ||Number of private container images|
|DA||Number of public container images|
|DB||Number of internal container images|
|DC||Number of container images owned by user accounts|
|DD||Number of container images owned by organizations|
|DE||Number of downloads of container images|
|DF||Number of container images updated|
|DG||Number of container images deleted|
|DH||Number of container images created|
To see an example of the headings included in the CSV export for Server Statistics, download the Server Statistics CSV example.
To see an example of the response payload for the Server Statistics API, see "Requesting Server Statistics using the REST API."