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

# GitHub Costs
Integration version1.0.0  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 %}

To read enterprise billing information from GitHub, Datadog requires a personal access token (Classic) from an Enterprise Admin user with the `manage_billing:enterprise` and `read:org` scopes, as the [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. You also need to provide your enterprise name, which can be found on the [enterprise settings page](https://github.com/settings/enterprises).

### 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 your enterprise name (in `enterprise-name` format), 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 %}

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