---
title: GitHub Costs
description: >-
  Integrate GitHub Costs with Datadog Cloud Cost to optimize repository,
  organization, and enterprise usage costs.
breadcrumbs: Docs > Integrations > GitHub Costs
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# GitHub Costs
Integration version1.1.0
{% callout %}
# Important note for users on the following Datadog sites: us2.ddog-gov.com

{% alert level="info" %}
To find out if this integration is available in your organization, see your [Datadog Integrations](https://app.datadoghq.com/integrations) page or ask your organization administrator.

To initiate an exception request to enable this integration for your organization, email [support@ddog-gov.com](mailto:support@ddog-gov.com).
{% /alert %}

{% /callout %}
  GitHub Costs DashboardGitHub Costs Explorer
## Overview{% #overview %}

Datadog's GitHub Costs integration provides a comprehensive view of your GitHub expenses—from Actions to Storage to Copilot—across your organization. With this integration, you can view GitHub costs alongside other costs in [Cloud Cost Management](https://app.datadoghq.com/cost), filter cost data by repository, and optimize cloud spend across your entire enterprise.

## Setup{% #setup %}

An account collects costs for either a whole GitHub enterprise or a single GitHub organization, depending on the name and token you provide. An enterprise report already covers every organization it owns, so connect an organization only if you don't administer the parent enterprise. Connecting both an enterprise and one of its organizations counts that organization's costs twice.

Both are available only to accounts on GitHub's [enhanced billing platform](https://docs.github.com/en/billing/using-the-enhanced-billing-platform-for-enterprises/about-the-enhanced-billing-platform-for-enterprises).

### Enterprise{% #enterprise %}

Datadog requires a personal access token (Classic) from an Enterprise Admin user with the `manage_billing:enterprise` and `read:org` scopes, as the enterprise [Cost Center](https://docs.github.com/en/enterprise-cloud@latest/rest/billing/cost-centers?apiVersion=2022-11-28#get-all-cost-centers-for-an-enterprise) and [Billing Usage](https://docs.github.com/en/enterprise-cloud@latest/rest/billing/usage?apiVersion=2022-11-28#get-billing-usage-report-for-an-enterprise) endpoints do not support fine-grained personal access tokens. Your enterprise name is the slug shown on the [enterprise settings page](https://github.com/settings/enterprises) and in the URL `https://github.com/enterprises/<enterprise-name>`.

### Organization{% #organization %}

Datadog requires a [fine-grained personal access token](https://docs.github.com/en/rest/authentication/permissions-required-for-fine-grained-personal-access-tokens) created by an organization owner, with the organization set as the token's resource owner and the `Administration` organization permission set to read-only. Your organization name is the login in the URL `https://github.com/<organization-name>`.

An organization report covers only that organization. Because cost centers are an enterprise-level feature, organization accounts can't break down costs by cost center.

### Installation{% #installation %}

1. Navigate to the Datadog [Github Costs tile](https://app.datadoghq.com/integrations/github-costs).
1. Click **Add New Account**.
1. Enter an account name, your personal access token, and the enterprise slug or organization login to collect costs for, as well as any appropriate tags.
1. Click the **Save** button to save your settings.

### Validation{% #validation %}

After the integration is set up, data typically appears in [Cloud Cost Management](https://app.datadoghq.com/cost) under the provider name "GitHub Costs" within approximately 24 hours. For a list of collected data, see [SaaS Cost Integrations](https://docs.datadoghq.com/cloud_cost_management/setup/saas_costs.md?tab=github#data-collected).

## Data Collected{% #data-collected %}

### Cloud Cost Management{% #cloud-cost-management %}

The GitHub cost integration estimates costs based on list prices and usage data, and includes discount values when available. It does not account for any negotiated rates.

### Metrics{% #metrics %}

GitHub Costs does not include any metrics.

### Log Collection{% #log-collection %}

GitHub Costs does not include any logs.

### Events{% #events %}

GitHub Costs does not include any events.

### Service Checks{% #service-checks %}

GitHub Costs does not include any service checks.

## Troubleshooting{% #troubleshooting %}

Need help? Contact [Datadog support](https://docs.datadoghq.com/help/).

## Further Reading{% #further-reading %}

Additional helpful documentation, links, and articles:

- [GitHub Costs](https://docs.datadoghq.com/integrations/github-costs.md)
