-
Notifications
You must be signed in to change notification settings - Fork 3.8k
feat(kafka): Support multiple kafka clients in component #17757
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
Conversation
pkg/kafka/config.go
Outdated
| } | ||
|
|
||
| func (cfg *ClientConfig) RegisterFlagsWithPrefix(prefix string, f *flag.FlagSet) { | ||
| f.StringVar(&cfg.Address, prefix+".address", "localhost:9092", "The Kafka backend address.") |
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.
Remember to fix duplicate defaults.
grobinson-grafana
left a comment
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.
👍 Please see comments but otherwise I don't need to see this again, thanks!
As discussed on Slack, please make sure to update this configuration in all of our environments and then come back and remove the deprecated fields. May I suggest creating an issue for this so you don't forget about it?
What this PR does / why we need it:
This pull request enables Loki components to use separate reader and writer clients in parallel. The separation of reader/writer address and client ID is required for kafka-compatible implementations that provide different endpoints for writes and reads.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Checklist
CONTRIBUTING.mdguide (required)featPRs are unlikely to be accepted unless a case can be made for the feature actually being a bug fix to existing behavior.docs/sources/setup/upgrade/_index.mddeprecated-config.yamlanddeleted-config.yamlfiles respectively in thetools/deprecated-config-checkerdirectory. Example PR