IntegrationsCurrently available IntegrationsGitHub Integration

GitHub Integration for Grafana Cloud

GitHub is a provider of Internet hosting for software development and version control using Git. This integration enables the agent to send metrics to Grafana Cloud along with a useful default dashboard for visualization.

Use the walkthrough in Grafana Cloud to install the GitHub Integration.

Post-install configuration for the GitHub Integration

In the agent configuration file, you must specify the repositories for which you wish to collect statistics. This can be a combination of specifying entire orgs, or users, and listing repositories explicitly.

It is also advised that you provide a GitHub personal access token with read-only permissions so that the API ratelimit is not reached prematurely.

integrations:
  github_exporter:
    enabled: true
    repositories:
      - grafana/agent
      - grafana/grafana
    organizations:
      - prometheus-community
    users:
      - <your github user name>
    api_token: <your github api token>

For a full description of configuration options, see github_exporter_config in the Agent documentation.