Closed Horusiath closed 3 weeks ago
@Horusiath are the AI token usage tied to workspace or user?
Right now they are not grouped by anything. After talking with @appflowy we haven't decided yet on what attribute group them by.
@Horusiath No problems, we can add them later if needed.
I've added workspace id as a label to token metrics (as we discussed it with @appflowy ). With that state of the PR, we are ready to merge it.
This PR registers a new
search_tokens_used
counter in prometheus so that we can track how many OpenAI API tokens are used over time.