Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions menu/navigation.json
Original file line number Diff line number Diff line change
Expand Up @@ -3643,6 +3643,10 @@
},
{
"items": [
{
"label": "Fixing Grafana data synchronization issues",
"slug": "synchronize-grafana-data-sources"
},
{
"label": "Resetting a Grafana password",
"slug": "resetting-grafana-password-via-the-api"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ meta:
paragraph: Reset your Grafana user password using the Scaleway API. Retrieve your Grafana user ID and reset the password with a simple curl command.
tags: grafana password credentials
dates:
validation: 2024-12-26
validation: 2025-02-03
posted: 2023-04-03
categories:
- observability
Expand All @@ -18,7 +18,6 @@ This page shows you how to reset your Grafana user's password through the Scalew

- A Scaleway account logged into the [console](https://console.scaleway.com)
- [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
- [Installed](https://curl.se/download.html) curl


1. Click **Cockpit** in the Observability section of the [console](https://console.scaleway.com/) side menu. The **Cockpit** overview page displays.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
meta:
title: Fixing Grafana data synchronization issues
description: Fix Grafana data synchronization issues and ensure data appears on Cockpit dashboards with this troubleshooting guide.
h1: Fixing Grafana data synchronization issues
paragraph: Fix Grafana data synchronization issues and ensure data appears on Cockpit dashboards with this troubleshooting guide.
tags: grafana data-sources synchronization sync
dates:
validation: 2025-02-03
posted: 2025-02-03
categories:
- observability
---

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/).

<Macro id="requirements" />

- A Scaleway account logged into the [console](https://console.scaleway.com)
- [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
- [Installed](https://curl.se/download.html) curl

Open a terminal and run the following command to trigger the synchronization of your data sources:
```bash
curl -X POST \
-H "X-Auth-Token: $SCW_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{"project_id":"$SCALEWAY_PROJECT_ID"}' \
"https://api.scaleway.com/cockpit/v1/grafana/sync-data-sources"

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.