Skip to content

Commit ccc5882

Browse files
committed
docs(cpt): troubleshooting
1 parent 4a16cf3 commit ccc5882

File tree

3 files changed

+36
-2
lines changed

3 files changed

+36
-2
lines changed

menu/navigation.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3643,6 +3643,10 @@
36433643
},
36443644
{
36453645
"items": [
3646+
{
3647+
"label": "Fixing Grafana data synchronization issues",
3648+
"slug": "synchronize-grafana-data-sources"
3649+
},
36463650
{
36473651
"label": "Resetting a Grafana password",
36483652
"slug": "resetting-grafana-password-via-the-api"

pages/cockpit/troubleshooting/resetting-grafana-password-via-the-api.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ meta:
66
paragraph: Reset your Grafana user password using the Scaleway API. Retrieve your Grafana user ID and reset the password with a simple curl command.
77
tags: grafana password credentials
88
dates:
9-
validation: 2024-12-26
9+
validation: 2025-02-03
1010
posted: 2023-04-03
1111
categories:
1212
- observability
@@ -18,7 +18,6 @@ This page shows you how to reset your Grafana user's password through the Scalew
1818

1919
- A Scaleway account logged into the [console](https://console.scaleway.com)
2020
- [Created](/iam/how-to/create-api-keys/) an API key with sufficient [IAM permissions](/iam/reference-content/permission-sets/) to perform the actions described on this page
21-
- [Installed](https://curl.se/download.html) curl
2221

2322

2423
1. Click **Cockpit** in the Observability section of the [console](https://console.scaleway.com/) side menu. The **Cockpit** overview page displays.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
meta:
3+
title: Fixing Grafana data synchronization issues
4+
description: Fix Grafana data synchronization issues and ensure data appears on Cockpit dashboards with this troubleshooting guide.
5+
h1: Fixing Grafana data synchronization issues
6+
paragraph: Fix Grafana data synchronization issues and ensure data appears on Cockpit dashboards with this troubleshooting guide.
7+
tags: grafana data-sources synchronization sync
8+
dates:
9+
validation: 2025-02-03
10+
posted: 2025-02-03
11+
categories:
12+
- observability
13+
---
14+
15+
Many Cockpit users encounter issues with Grafana data sources not syncing properly, leading to missing data on dashboards. This page shows you how to resolve synchronization problems using the [Cockpit Global API](https://www.scaleway.com/en/developers/api/cockpit/v1/global-api/).
16+
17+
<Macro id="requirements" />
18+
19+
- A Scaleway account logged into the [console](https://console.scaleway.com)
20+
- [Created](/iam/how-to/create-api-keys/) an API key with sufficient [IAM permissions](/iam/reference-content/permission-sets/) to perform the actions described on this page
21+
- [Installed](https://curl.se/download.html) curl
22+
23+
Open a terminal and run the following command to trigger the synchronization of your data sources:
24+
```bash
25+
curl -X POST \
26+
-H "X-Auth-Token: $SCW_SECRET_KEY" \
27+
-H "Content-Type: application/json" \
28+
-d '{"project_id":"$SCALEWAY_PROJECT_ID"}' \
29+
"https://api.scaleway.com/cockpit/v1/grafana/sync-data-sources"
30+
31+
Make sure that you replace `$SCW_SECRET_KEY` with your API secret key and `$SCALEWAY_PROJECT_ID` with the ID of the Scaleway Project affected by the issue.

0 commit comments

Comments
 (0)