Skip to content

Commit ce61c59

Browse files
fpagnybene2k1nerda-codes
authored
Update fixing-common-issues.mdx (#4446)
* Update fixing-common-issues.mdx Add troubleshooting section for tokens consumption not displayed in Cockpit. * Apply suggestions from code review * Apply suggestions from code review Co-authored-by: Néda <[email protected]> --------- Co-authored-by: Benedikt Rollik <[email protected]> Co-authored-by: Néda <[email protected]>
1 parent 1a854b8 commit ce61c59

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 is isolated by `project_id` and only displays token 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). The overall `Tokens Processed` counter is updated in real time.
77+
78+
### Solution
79+
- 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).
80+
81+
#### Example error behavior
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 Cockpit of a specific Project, but waiting for average token 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)