-
Notifications
You must be signed in to change notification settings - Fork 5.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
Expose kafka client id #4418
Expose kafka client id #4418
Conversation
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.
What platform are you running make test
on? If it's not Linux amd64 can you open a new issue for the test failures?
@@ -17,6 +17,7 @@ import ( | |||
|
|||
type Kafka struct { | |||
ConsumerGroup string | |||
ClientId string `toml:"client_id"` |
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.
Call the variable ClientID
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.
👍
@@ -22,6 +22,9 @@ and use the old zookeeper connection method. | |||
## Offset (must be either "oldest" or "newest") | |||
offset = "oldest" | |||
|
|||
## Optional client id | |||
# client_id = "my_client" |
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.
Let's have the example ID be Telegraf
? Perhaps this should be the default instead of "sarama"?
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.
The default value of sarama is set by the underlying implementation used by both kafka plugins. I can add the logic to set the id to "Telegraf" when a value is not supplied.
ATM I am running the test on a Mac v10.13.2 (17C88) |
Thank you! |
The team running the Kafka I was using required that I set the client id for reads and writes. For reference, the default client id is "sarama"
Required for all PRs:
I ran "make lint" and "make test", the latter showed failures for unrelated files. (outputs/socket_writer, outputs/influxdb, inputs/syslog, inputs/socket_listener, inputs/ping, inputs/http_response, inputs/fluentd)