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

New community plugin for kafka #65

Open
majormoses opened this issue Oct 20, 2017 · 6 comments
Open

New community plugin for kafka #65

majormoses opened this issue Oct 20, 2017 · 6 comments
Assignees

Comments

@majormoses
Copy link
Member

majormoses commented Oct 20, 2017

From slack:
khaled [8:43 AM] 
hey i made a handler for sending checks result to kafka , would it be inetresting to share it ?


matt
[8:44 AM] 
@khaled absolutely!! Mind linking us to it?


khaled [8:44 AM] 
it's just a litte .rb file , how cani share it ?

majormoses
I will create the repo and do some basic setup.

@majormoses majormoses self-assigned this Oct 20, 2017
@bk-khaled
Copy link

bk-khaled commented Oct 20, 2017

Ok so here is the Handler, i didn't make options to add parameters so there is 3 stuff you may want to change manually in the code :

-the broker (kafka ip)
-the name of the destination topic in kafka
-and what is sended(here it's event.inspect which contain the json check result it was enough for me)

here is the code :

https://gist.github.com/bk-khaled/4f47a26258cfb9be8b5909639fa6e375

If you have trouble installing the package 'kafka' it's mostly a PATH issue ( you have to install it in the right directory)
if you have trouble like : failed to send message , if kafka in a remote machine, you should change the server.properties of kafka, uncomment listners.host and put there the kafka IP, then restart kafka

Finally, add a handler, pipe type, with this file as a command to get your checks result sended to kafka

PS: this is the ruby kafka package used in the code https://github.com/zendesk/ruby-kafka

@mbbroberg
Copy link
Contributor

Looks like a repo is still needed here. Very cool work @bk-khaled, we need to tackle this soon!

@majormoses
Copy link
Member Author

Looks like we should reach out and see about incorporating this: https://github.com/uswitch/sensu-plugins-kafka-lag

@majormoses
Copy link
Member Author

sorry for the long silence I have been quite busy. I have created the base for the kafka plugin to be worked on, once it is reviewed and merged we can start adding actual checks, handlers. etc.

@eberkut
Copy link

eberkut commented Apr 10, 2018

@majormoses this one looks more comprehensive: https://github.com/obazoud/sensu-plugins-kafka/

@majormoses
Copy link
Member Author

I will reach out, sorry this got lost in the all that was going on at the time for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants