-
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
Support Riemann-Protobuff Listener #8163
Conversation
e90e060
to
0236431
Compare
I've never heard of this before. It might be better off as an external plugin. Check out the shim readme on externalizing plugins, and let me know what you think. |
Exactly.. Riemann(http://riemann.io/). |
Apologgies... I accedentally closed the pr trying to comment from my phone |
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.
looks really good. some small comments. Also there's some conflicts with the go package files that needs to be resolved.
wg := sync.WaitGroup{} | ||
|
||
for { | ||
c, err := rsl.Accept() |
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.
can this take a context to shut down cleanly?
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.
Hmm.. I actually followed this paradigm similar to how it was implemented in socket_listener, so thought this should be ok.
Your thought :) ?
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.
it's possible socket_listener needs to be updated too. My concern here is if Telegraf shuts down cleanly when it's waiting for a connection. should be easy enough to test
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.
Hmm... I think it should be fine. Anyhow, added a context handler to close connections safely as well.
was on a break and back after a hiatus. |
Thanks! happy to see this is active. |
0236431
to
34babce
Compare
Have pushed with newer changes |
This commits adds an input plugin that will allow telegraf to serve as a simple riemann-protobuff listener, that riemann clients can connect to. It uses the recommended protobuf structure from the recommended riemann-go-client maintained in the riemann repository. Closes influxdata#8160 Required for all PRs: - [x] Signed [CLA](https://influxdata.com/community/cla/). - [x] Associated README.md updated. - [x] Has appropriate unit tests.
34babce
to
4425317
Compare
The context didn't exactly work out like I expected. I don't think it's providing the value I wanted, so if you want to remove it I'm fine with that. Let me know when you're ready to merge either way and we can. |
yes, let's merge it 😬 |
Thank you! |
This commits adds an input plugin that will allow telegraf to
serve as a simple riemann-protobuff listener, that riemann clients
can connect to.
It uses the recommended protobuf structure from the recommended
riemann-go-client maintained in the riemann repository.
Closes #8160
Required for all PRs: