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
The dashboard JSON files in this directory reference datasources using a unique identifier (UID). If you need to update the datasource UID to match your Grafana instance, follow the instructions below.
6
+
7
+
### Method 1: Grafana UI (Easiest)
8
+
9
+
1. Navigate to **Grafana** → **Connections** → **Data sources**
10
+
2. Click on the datasource you want to use (e.g., **Prometheus**)
11
+
3. Look at the **URL in your browser's address bar**
12
+
4. The UID will be visible in the URL (typically after `/datasources/edit/`)
13
+
- Example: `http://localhost:3000/datasources/edit/prometheus` → UID is `prometheus`
14
+
15
+
### Updating the Dashboard Files
16
+
17
+
Once you have the UID, you can update it in the dashboard JSON files:
18
+
19
+
Find sections like this:
20
+
21
+
```json
22
+
"datasource": {
23
+
"type": "prometheus",
24
+
"uid": "prometheus"
25
+
}
26
+
```
27
+
28
+
Replace the `"uid"` value with the UID you found in step 3 above.
29
+
30
+
### Note
31
+
32
+
- The default UID for Prometheus in these dashboards is `prometheus`
33
+
- If your Grafana instance uses a different UID, you'll need to update all dashboard files accordingly
34
+
- You can use a find-and-replace tool to update multiple files at once
0 commit comments