Skip to content

Commit 9709f6d

Browse files
authored
Update fixing-common-issues.mdx
Add troubleshooting section for tokens consumption not displayed in Cockpit.
1 parent a01bd03 commit 9709f6d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

pages/generative-apis/troubleshooting/fixing-common-issues.mdx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,24 @@ Below are common issues that you may encounter when using Generative APIs, their
6969
}
7070
```
7171

72+
## Tokens consumption is not displayed in Cockpit Metrics
73+
74+
### Causes
75+
- Cockpit are isolated by `project_id` and only display tokens consumption related to one project.
76+
- Cockpit `Tokens Processed` graphs along time can take up to an hour to update (to provide more accurate average consumptions over time). Note that the overall `Tokens Processed` counter is updated in real time.
77+
78+
### Solution
79+
- Ensure you are connecting to the right Cockpit for your project. Cockpits are currently isolated by `project_id`, that 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).
80+
81+
#### Example error behaviour
82+
- When displaying the wrong Cockpit for the project:
83+
- Counter for Tokens Processed or API Requests should display a value of 0
84+
- Graph across time should be empty
85+
- When displaying the right Cockpit for the project, but waiting for average tokens consumption to display:
86+
- Counter for Tokens Processed or API Requests should display a correct value (different from 0)
87+
- Graph across time should be empty
88+
```
89+
7290
## Best practices for optimizing model performance
7391
7492
### Input size management

0 commit comments

Comments
 (0)