Open source Enterprise Grafana Cloud
Last reviewed: March 11, 2026

Troubleshoot GitHub data source issues

This document provides solutions to common issues you may encounter when configuring or using the GitHub data source. For configuration instructions, refer to Configure the GitHub data source.

Authentication errors

These errors occur when credentials are invalid, missing, or don’t have the required permissions.

“401 Unauthorized. Check your API key/Access token”

Symptoms:

  • Save & test fails with a 401 error.
  • Queries return authorization errors.
  • Resources don’t load in drop-downs.

Possible causes and solutions:

CauseSolution
Missing or incorrect token scopesVerify the token includes all required scopes.
Expired or revoked tokenGenerate a new token in GitHub and update the data source configuration.
Extra whitespace or line breaks in tokenPaste the token directly, avoiding extra spaces or line breaks.
Token doesn’t have access to the queried repositoriesEnsure the token has access to the repositories and organizations you’re querying. For private repositories, the repo scope is required.

GitHub App authentication fails

Symptoms:

  • Save & test fails when using GitHub App authentication.
  • Queries return errors about invalid credentials.

Possible causes and solutions:

CauseSolution
Incorrect App IDVerify the App ID matches the ID shown on your GitHub App’s settings page.
Wrong Installation IDVerify the installation ID. Navigate to Settings > Installed GitHub Apps > Configure and check the number at the end of the URL.
Expired or invalid private keyGenerate a new private key from your GitHub App settings and update the data source configuration.
App not installed on the target organizationInstall the GitHub App on the organization or user account you want to query.
Insufficient app permissionsVerify the app has the required permissions.

Can’t access private repositories or organizations

Symptoms:

  • Queries only return data from public repositories.
  • Organization-level queries return empty results.

Solutions:

  1. Verify your personal access token includes the repo and read:org scopes.
  2. For GitHub Apps, verify the app is installed on the organization and has the required repository permissions.
  3. Generate a new token or update the app permissions and reconfigure the data source.

Connection errors

These errors occur when Grafana can’t reach the GitHub API endpoints.

“404 Not Found. Check the Github Enterprise Server URL”

Symptoms:

  • Save & test fails with a 404 error when using GitHub Enterprise Server.

Solutions:

  1. Verify the GitHub Enterprise Server URL is correct and includes the protocol (for example, https://github.example.com).
  2. Ensure the URL doesn’t include a trailing path like /api/v3 – the plugin adds this automatically.
  3. Verify the GitHub Enterprise Server instance is accessible from the Grafana server.

“Unable to reach the Github Enterprise Server URL from the Grafana server”

Symptoms:

  • Save & test fails with a connection error.
  • DNS resolution or network timeout errors appear in Grafana logs.

Solutions:

  1. Verify network connectivity from the Grafana server to the GitHub Enterprise Server.
  2. Check that firewall rules allow outbound HTTPS (port 443) traffic to the GitHub endpoint.
  3. Verify proxy settings if your Grafana server uses a proxy for outbound requests.
  4. For Grafana Cloud, configure Private data source connect if your GitHub Enterprise Server is in a private network.

Query errors

These errors occur when executing queries against the data source.

No data or empty results

Symptoms:

  • Query executes without error but returns no data.
  • Charts show “No data” message.

Possible causes and solutions:

CauseSolution
Time range doesn’t contain dataExpand the dashboard time range. For queries without a time field (for example, time field set to None), the time range filter isn’t applied.
Wrong owner or repositoryVerify the Owner and Repository fields are correct.
Permissions issueVerify the token or GitHub App has read access to the target repository.
Query syntax errorFor Issues, Pull Requests, and Pull Request Reviews, verify the GitHub search syntax.

Result limits

Some query types have maximum result limits:

Query typeMaximum resultsSource
Issues1,000GitHub search API limit
Repositories1,000GitHub search API limit
Contributors200Plugin page limit
Projects200Plugin page limit

If you’re hitting these limits, use more specific query filters or narrow the time range to reduce the result set.

Rate limiting

Symptoms:

  • Queries intermittently fail or return errors.
  • Multiple panels on a dashboard fail to load simultaneously.

Solutions:

The plugin caches all API responses for up to five minutes to reduce the number of requests to GitHub. If you’re still hitting rate limits:

  1. Reduce the frequency of dashboard auto-refresh.
  2. Use more specific queries to reduce the number of API calls.
  3. If using a personal access token, consider switching to a GitHub App, which has higher rate limits.
  4. For Grafana Enterprise or Grafana Cloud, enable query caching for additional caching control beyond the built-in cache.

Code scanning errors

Code scanning alerts return empty results

Symptoms:

  • Code scanning queries return no data even though alerts exist in GitHub.

Solutions:

  1. Verify the token or GitHub App has the code scanning permissions: code scanning alerts: read-only and security_events: read-only.
  2. Verify code scanning is enabled on the repository.
  3. If querying at the organization level, leave the Repository field empty.

Enable debug logging

To capture detailed error information for troubleshooting:

  1. Set the Grafana log level to debug in the configuration file:

    ini
    [log]
    level = debug
  2. Restart Grafana for the change to take effect.

  3. Reproduce the issue and review logs in /var/log/grafana/grafana.log (or your configured log location).

  4. Look for entries containing github for request and response details.

  5. Reset the log level to info after troubleshooting to avoid excessive log volume.

Get additional help

If you’ve tried the solutions in this document and still have issues:

  1. Check the Grafana community forums for similar issues.
  2. Review the GitHub data source plugin issues for known bugs.
  3. Consult the GitHub API documentation for service-specific guidance.
  4. Contact Grafana Support if you’re a Grafana Cloud Pro, Cloud Advanced, or Enterprise customer.
  5. When reporting issues, include:
    • Grafana version and plugin version.
    • Exact error messages (redact sensitive information).
    • Steps to reproduce the issue.
    • Relevant configuration details (redact credentials).