diff --git a/pages/generative-apis/troubleshooting/fixing-common-issues.mdx b/pages/generative-apis/troubleshooting/fixing-common-issues.mdx index 48348b84e2..eca438252d 100644 --- a/pages/generative-apis/troubleshooting/fixing-common-issues.mdx +++ b/pages/generative-apis/troubleshooting/fixing-common-issues.mdx @@ -69,6 +69,24 @@ Below are common issues that you may encounter when using Generative APIs, their } ``` +## Tokens consumption is not displayed in Cockpit metrics + +### Causes +- Cockpit is isolated by `project_id` and only displays token consumption related to one Project. +- Cockpit `Tokens Processed` graphs along time can take up to an hour to update (to provide more accurate average consumptions over time). The overall `Tokens Processed` counter is updated in real time. + +### Solution +- Ensure you are connecting to the Cockpit corresponding to your Project. Cockpits are currently isolated by `project_id`, which you can see in their URL: `https://PROJECT_ID.dashboard.obs.fr-par.scw.cloud/`. This Project should correspond to the one used in the URL you used to perform Generative APIs requests, such as `https://api.scaleway.ai/{PROJECT_ID}/v1/chat/completions`. You can list your projects and their IDs in your [Organization dashboard](https://console.scaleway.com/organization/projects). + +#### Example error behavior +- When displaying the wrong Cockpit for the Project: + - Counter for **Tokens Processed** or **API Requests** should display a value of 0 + - Graph across time should be empty +- When displaying the Cockpit of a specific Project, but waiting for average token consumption to display: + - Counter for **Tokens Processed** or **API Requests** should display a correct value (different from 0) + - Graph across time should be empty +``` + ## Best practices for optimizing model performance ### Input size management