Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Flexibility to keep configurations and spend logs in different databases #7502

Open
bansal-ankita opened this issue Jan 2, 2025 · 4 comments

Comments

@bansal-ankita
Copy link

The Feature

Flexibility to keep configurations and spend logs in different databases

Motivation, pitch

Our database size is growing larger due to continuously pushing logs into the LiteLLM_SpendLogs table. However, if we stop doing this, the endpoints for retrieving the spend report will no longer function. We would prefer to utilize the spend tracking endpoints provided by LiteLLM, with the logs stored in a database different from the one used for configurations.

Are you a ML Ops Team?

Yes

Twitter / LinkedIn details

No response

@bansal-ankita bansal-ankita added the enhancement New feature or request label Jan 2, 2025
@krrishdholakia
Copy link
Contributor

Hi @bansal-ankita interesting point - how would you suggest we handle this situation?

@bansal-ankita
Copy link
Author

Hi @krrishdholakia It should be a configurable option, allowing users to choose whether they want separate configuration and log databases. If selected, additional details can be provided, such as using a separate database within the same PostgreSQL instance, or supporting other databases like BigQuery (BQ). This is just one possible approach; other options should also be considered.

@krrishdholakia
Copy link
Contributor

what would you want here?

will help scope change for v0

@bansal-ankita
Copy link
Author

I want to retrieve spend logs from alternative sources, such as log files or through an integration with BigQuery, rather than relying on the PostgreSQL table.

@krrishdholakia krrishdholakia self-assigned this Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants