You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR will create a new page i.e. Troubleshooting which will explain
user some of the most common problems when trying to setup and configure
the github data source plugin
This page will also be part of the Docs Learning Journey for the GitHub
data source and the goal is to help users to get success when setting up
the data source
---------
Signed-off-by: Usman Ahmad <[email protected]>
Co-authored-by: Christopher Moyer <[email protected]>
Co-authored-by: David Harris <[email protected]>
title: Troubleshooting common problems for the Grafana GitHub data source plugin
3
+
menuTitle: Troubleshoot
4
+
description: Learn how to troubleshoot common problems for the GitHub data source plugin
5
+
keywords:
6
+
- data source
7
+
- github
8
+
- github repository
9
+
- API
10
+
labels:
11
+
products:
12
+
- oss
13
+
- enterprise
14
+
- cloud
15
+
weight: 600
16
+
---
17
+
18
+
# Troubleshooting common problems for the Grafana GitHub data source plugin
19
+
20
+
This page lists some common issues you may experience when setting up the Grafana GitHub data source plugin. You can check the possible reasons and suggested solutions below.
21
+
22
+
### Why does my data source setup fail ("Authentication failed") when using a GitHub Personal Access Token (PAT)?
23
+
24
+
- Make sure your PAT is created with valid [permissions required for the Grafana GitHub data source](https://grafana.com/docs/plugins/grafana-github-datasource/setup/token/#permissions).
25
+
- Check that the token is not expired or revoked.
26
+
- Ensure the token has access to the repositories you want to query
27
+
- Paste the PAT directly into the configuration field, avoiding extra spaces or line breaks.
28
+
- If using GitHub Enterprise, verify the API URL and ensure the PAT is valid for that instance.
29
+
- If the error persists, generate a new PAT and update the configuration.
30
+
31
+
### Why can't I access private repositories or organizations?
32
+
33
+
- Make sure your PAT includes the `repo` and `read:org` scopes.
34
+
- Update the data source configuration with the new token and test again.
35
+
36
+
### What should I do if I see "An unexpected error happened" or "Could not connect to GitHub" after trying all of the above?
37
+
38
+
- Check the Grafana logs for more details about the error.
0 commit comments