-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[redisstorageextension] allow redis key prefix to be specified in config #37677
Conversation
4dd1134
to
2fcdb6e
Compare
2fcdb6e
to
a270e3f
Compare
Hey guys, is there any process to follow to get the PR reviewed? Or is it just a matter of time? |
f21529e
to
6d8cc31
Compare
- `db` (optional): Database to be selected after connecting to the server. Default: 0 | ||
- `expiration` (optional): TTL for all storage entries. Default TTL means the key has no expiration time. Default: 0 | ||
- `prefix` (optional): Prefix to be used for a redis key. Default:`<component_kind>_<component_type>_<component_name>_<storage_extension_name>` - e.g. `receiver_filelog_` if filelog receiver & redisstorage extension have no names |
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.
Could you update the documentation with the new semantics as well?
@HubertFraczek you're going to need to add a changelog entry as well. Try running |
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.
LGTM, thank you for the contribution!
build fails with
Please address and we will get this in. |
Is there anything left for me to do? I also wanted to ask if these changes will appear in the next release |
You just need to address review comments as they come, and after there's sufficient approvals, your PR will be merged. The change will appear in whichever release happens afterwards. Releases happen every 2 weeks, so you typically don't need to wait for long. |
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
Hi, what is the progress with this PR? Is the fix for that failing unit test from that other extension merged to main? Can we re-run pipelines and merge this PR in? |
Description
The purpose of this PR is to allow the user to specify the redis key prefix. The lack of this feature has become problematic when using multiple replicas in a kubernetes cluster - until now, the key prefix has been based on the storage extension and receiver names, which are the same for each replica because they share the same configuration and therefore overwrite the same key in redis. With the changes in this PR, the user can specify the prefix as an environmental variable (which can have different value for each replica), for example.
Testing
opentelemetry-collector-contrib (0.118.0) was built with this change and tested on a kubernetes cluster
Config used for testing:
Documentation
Updated README.md to add new config parameter.