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

Can grok_exporter input from kafka? #43

Open
william-yang opened this issue Sep 4, 2018 · 4 comments
Open

Can grok_exporter input from kafka? #43

william-yang opened this issue Sep 4, 2018 · 4 comments

Comments

@william-yang
Copy link

my log had put info kafka from many os, how can grok_exporter input from kafka, exporter metrics to promethues?

@william-yang
Copy link
Author

william-yang commented Sep 4, 2018

  1. get info from kafka to logfile , than grok_exporter input from logfile
  2. logstash get info from kafka and output to pipeline ,grok_exporter input from stdin.
  3. add grok_exporter input from kafka support

which will better?

@fstab
Copy link
Owner

fstab commented Sep 5, 2018

Hi, the best would of course be to implement a Kafka input for grok_exporter. There was a PR for that once (#16), but nobody is working on it right now. If you know Go programming and would like to contribute, feel free to implement a Kafka input.

However, with the current grok_exporter it might be the best to use the stdin input and pipe the Kafka output to grok_exporter.

@hartfordfive
Copy link
Contributor

Hi @fstab ,

What's the current status with the related PR? Are there any final modifications which need to be done? The only thing I'm wondering is why the sarama Kafka library (authored by Shopify) wasn't used? I haven't done any tests or benchmarks between sarama and optiopay's kafka library, although sarama does have a much more active community and regular updates. It's widely used in many other Go apps which use Kafka. Might it be prudent to use that one instead for those reasons?

@fstab
Copy link
Owner

fstab commented Aug 6, 2020

replied in #16

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

No branches or pull requests

3 participants