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

Scram #101

Merged
merged 5 commits into from
Apr 17, 2020
Merged

Scram #101

merged 5 commits into from
Apr 17, 2020

Conversation

squ1d123
Copy link
Contributor

No description provided.

@squ1d123
Copy link
Contributor Author

This will address issue #98

@fritchie
Copy link

thx, looking forward to this

@gramer
Copy link

gramer commented Apr 28, 2019

I've tried it, but the connection is very unstable.

./kafka_exporter --kafka.server=xxxx:9092 --sasl.enabled --sasl.username=xxx --sasl.password="xxxx" --sasl.mechanism="scram-sha256" --kafka.version=2.1.0 --log.enable-sarama

The following logs are often visible and as a result collecting often fails.

[sarama] 2019/04/28 11:11:01 SASL authentication failed not enough fields in first server message [sarama] 2019/04/28 11:11:01 Closed connection to broker xxxx:9092 ERRO[0079] Cannot get current offset of topic kafka.qili-local.1 partition 0: not enough fields in first server message source="kafka_exporter.go:290" ERRO[0079] Cannot get current offset of topic kafka.test2.1 partition 0: not enough fields in first server message source="kafka_exporter.go:290" ERRO[0079] Cannot get current offset of topic message2_api.app_push_dispatcher.v1 partition 0: not enough fields in first server message source="kafka_exporter.go:290" ERRO[0079] Cannot get current offset of topic kafka.test-2.1 partition 0: not enough fields in first server message source="kafka_exporter.go:290" [sarama] 2019/04/28 11:11:01 SASL authentication failed error parsing 'r=MrRT9lQ8Cw8/uc6AKQUfWraadsOTD+Wt14hvfqsbdg5v4ebqhclog4jojs' for field 'e' [sarama] 2019/04/28 11:11:01 Closed connection to broker xxx:9092 [sarama] 2019/04/28 11:11:01 client/metadata fetching metadata for [message2_api.text_dispatcher_response.v1] from broker xxx:9092 ERRO[0079] Cannot get current offset of topic kafka.test.1 partition 0: error parsing 'r=MrRT9lQ8Cw8/uc6AKQUfWraadsOTD+Wt14hvfqsbdg5v4ebqhclog4jojs' for field 'e' source="kafka_exporter.go:290"

image

@robholland
Copy link

This has worked great for us, no connection issues.

@gramer
Copy link

gramer commented May 17, 2019

After upgrading sarama, no connection issue. refer to below commits
IBM/sarama#1349

@squ1d123
Copy link
Contributor Author

Updated pull request to use latest sarama as referred to by @gramer

@peimanja
Copy link

Any update on this one?

@muffin87
Copy link

It would be wonderfull if this feature would be added. All my Kafka clusters need to use SCRAM.

@rajivchirania
Copy link

@squ1d123 How can i use your branch..I get the below error

Failed to pull image "squ1d123/kafka_exporter:latest": rpc error: code = Unknown desc = Error response from daemon: pull access denied for squ1d123/kafka_exporter, repository does not exist or may require 'docker login'

darklore added a commit to darklore/kafka_exporter that referenced this pull request Jan 15, 2020
@fcosta-td
Copy link

Is something missing from this PR to prevent it from being merged?

@paulojmdias
Copy link

Can someone merge this? It works and we need that.

@Neustradamus
Copy link

Any news?

@leonrado
Copy link

Merge this will be great

@gabrielmuras
Copy link

Any news? Merging will be very helpful for us.

@jagdeepgithub
Copy link

Yes it would be helpful if we can merge this change. Thanks!

@Fanduzi
Copy link

Fanduzi commented Apr 17, 2020

@danielqsj
合并分支吧, 现在很多公司都开SCRAM认证了. 这么多老外等着呢

@danielqsj
Copy link
Owner

Thanks @squ1d123

/lgtm

@danielqsj danielqsj merged commit 61a00f5 into danielqsj:master Apr 17, 2020
@Neustradamus
Copy link

@squ1d123, @Fanduzi, @danielqsj: Thanks a lot after one year for this PR!

@jagdeepgithub
Copy link

Any eta on when this will be released?

@koflTS
Copy link

koflTS commented Jul 6, 2020

The merged commit does not build on Travis. I also have a need for this feature. Hopefully someone finds the error soon.

darklore added a commit to darklore/kafka_exporter that referenced this pull request Feb 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.