For AI agents: A markdown version of this page is available at https://docs.datadoghq.com/integrations/git.md. A documentation index is available at /llms.txt.

Git

To find out if this integration is available in your organization, see your Datadog Integrations page or ask your organization administrator.

To initiate an exception request to enable this integration for your organization, email support@ddog-gov.com.

Git event

Overview

Capture Git commits directly from your Git server to:

  • Keep track of code changes in real time.
  • Add code change markers on all your dashboards.
  • Discuss code changes with your team.

Setup

Installation

  1. Create a new application key for Git: Generate Application Key

  2. Download the Datadog Git webhook:

    sudo easy_install dogapi
    curl -L https://raw.github.com/DataDog/dogapi/master/examples/git-post-receive-hook > post-receive
    
  3. Set up Git with your Datadog keys:

    git config datadog.api <YOUR_DATADOG_API_KEY>
    git config datadog.application <YOUR_DATADOG_APP_KEY>
    
  4. Activate the hook in your Git repository with the <GIT_REPOSITORY_NAME>:

    install post-receive <GIT_REPOSITORY_NAME>/.git/hooks/post-receive
    
  5. Install the Datadog-Git Integration

Troubleshooting

Need help? Contact Datadog support.