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 page shows you how to visualize your data again when it does not display on your Grafana dashboards, using the `SyncGrafanaDataSources`[endpoint](https://www.scaleway.com/en/developers/api/cockpit/v1/global-api/#path-grafana-synchronize-grafana-data-sources) of the [Cockpit Global API](https://www.scaleway.com/en/developers/api/cockpit/v1/global-api/#path-grafana-synchronize-grafana-data-sources).
16
+
This page shows you how to visualize your data again when it does not display on your Grafana dashboards, using the `SyncGrafanaDataSources`[endpoint](https://www.scaleway.com/en/developers/api/cockpit/v1/global-api/#path-grafana-synchronize-grafana-data-sources) of the [Cockpit Global API](https://www.scaleway.com/en/developers/api/cockpit/v1/global-api/#path-grafana-synchronize-grafana-data-sources) or the [Scaleway CLI](https://cli.scaleway.com/cockpit/#get-your-cockpits-grafana).
17
17
18
18
<Messagetype="important">
19
19
The [Cockpit Global API](https://www.scaleway.com/en/developers/api/cockpit/v1/global-api/#path-grafana-synchronize-grafana-data-sources) contains deprecated information that is being updated, you should not use it for any other purpose than the one described on this page.
@@ -24,25 +24,46 @@ This page shows you how to visualize your data again when it does not display on
24
24
- A Scaleway account logged into the [console](https://console.scaleway.com)
25
25
-[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
26
26
-[Installed](https://curl.se/download.html) curl
27
+
-[Configured your environment variables](https://github.com/scaleway/scaleway-cli/blob/master/docs/commands/config.md)
27
28
28
29
29
30
## Problem
30
31
31
-
Many Cockpit users often encounter issues with Grafana data sources not synchronizing properly, leading to missing data on dashboards when data should be available.
32
+
-Many Cockpit users often encounter issues with Grafana data sources not synchronizing properly, leading to missing data on dashboards when data should be available.
32
33
33
-
When users open their Grafana dashboards, they see a `No data` message along with an error banner stating: `Failed to upgrade legacy queries datasource was not found`.
34
+
When users open their Grafana dashboards, they see a `No data` message along with an error banner stating: `Failed to upgrade legacy queries datasource was not found`.
34
35
35
-
<Lightboxsrc="scaleway_cpt_grafana_datasources_troubleshooting.webp"alt="Grafana dashboard showing error messages and warning signs of no data found for the user's datasources" />
36
+
<Lightboxsrc="scaleway_cpt_grafana_datasources_troubleshooting.webp"alt="Grafana dashboard showing error messages and warning signs of no data found for the user's datasources" />
36
37
38
+
- Your Cockpit is unavailable.
39
+
- You cannot view your logs and/or metrics in Grafana.
40
+
- Your Cockpit data sources are not configured.
41
+
- You cannot view your dashboards in Grafana.
42
+
43
+
## Cause
44
+
45
+
These issues often occur due to synchronization failures between Cockpit and Grafana, preventing dashboards from displaying the latest logs and metrics as expected.
37
46
38
47
## Solution
39
48
49
+
### Using the Scaleway API
50
+
40
51
Open a terminal and run the following command to trigger the synchronization of your 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.
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.
69
+
Make sure that you replace `<PROJECT-ID>` with the ID of the Scaleway Project affected by the issue.
0 commit comments