-
Notifications
You must be signed in to change notification settings - Fork 0
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
Allow proxy service work without metrics DB to allow db drop #97
Conversation
79ab2e7
to
1bc873c
Compare
"time" | ||
) | ||
|
||
const ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Migrated partition part of the code into database, as it is based on the implementation details of the db itself
clients/database/empty/database.go
Outdated
@@ -0,0 +1,41 @@ | |||
package empty |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Empty implementation, that will be used in case of metric database disabled
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgm! great improvement from the previous changes
also please update the pr title / commit message before merge to be more a bit more descriptive & follow conventional commits 😃
METRIC_DATABASE_ENABLED=false
we can run proxy without database dependency.noop
(to use when metrics is disabled) andpostgres
(current implementation of db)