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 rabbitmq sink #558

Closed
f2zubac opened this issue Jul 2, 2019 · 13 comments · Fixed by #7120
Closed

New rabbitmq sink #558

f2zubac opened this issue Jul 2, 2019 · 13 comments · Fixed by #7120
Labels
domain: logs Anything related to Vector's log events domain: sinks Anything related to the Vector's sinks sink: new A request for a new sink type: feature A value-adding code addition that introduce new functionality.

Comments

@f2zubac
Copy link

f2zubac commented Jul 2, 2019

Hi Team

In order to be able to completely remove logstash and introduce Vector, it would be nice to introduce RabbitMQ sink plugin.

Sincerely,
Dragan

@binarylogic
Copy link
Contributor

Thanks @f2zubac! Appreciate the detail on your use case. We'll update this issue as we make progress.

@binarylogic binarylogic changed the title New sink type proposal - RabbitMQ New rabbitmq sink Jul 12, 2019
@binarylogic binarylogic added the meta: good first issue Anything that is good for new contributors. label Aug 7, 2019
@AlyHKafoury
Copy link
Contributor

Hello @binarylogic can I tackle this one, and can you please give me a little guidance where to start ?!

@binarylogic
Copy link
Contributor

Hi @AlyHKafoury absolutely! We'd love to have you contribute. @LucioFranco, since you worked with him on #960 maybe you can recommend the best way to get started?

I also opened the above issue to make this easier in the future.

@LucioFranco
Copy link
Contributor

Hi @AlyHKafoury!

I would suggest taking a look at a couple of our sources mainly the kafka sinks and some of our AWS sinks. They should show how we usually setup our sinks. At a high level they all implement futures::Sink and some use tower_service to use add rate limiting. I believe for this sink we may want to follow the pure futures::Sink method which is shown in kafka. I would suggest using the https://docs.rs/lapin-futures/0.28.0/lapin_futures/ library for interacting with rabitmq. Let me know if you have any questions!

@AlyHKafoury
Copy link
Contributor

@LucioFranco Thank you, I will get started in a couple of days and ask you if I have further questions.

@AlyHKafoury
Copy link
Contributor

@LucioFranco As I understand every sink has to implement an Acker is that correct ? that is the way it communicates it has already sent its buffer of items

@LucioFranco
Copy link
Contributor

@AlyHKafoury you should just have to ack the event once its been sent. So each event will get an ack id you can then ack that event once rabitmq has acked you back. https://github.com/timberio/vector/blob/master/src/sinks/kafka.rs#L195

@binarylogic binarylogic added type: feature A value-adding code addition that introduce new functionality. and removed type: new feature labels Jun 16, 2020
@binarylogic binarylogic added domain: logs Anything related to Vector's log events domain: sinks Anything related to the Vector's sinks needs: approval Needs review & approval before work can begin. labels Aug 7, 2020
@njasm
Copy link

njasm commented Apr 3, 2021

Hi, is this still being worked on, or is it blocked?
I would like to work on trying to landing a minimum viable rabbitmq sink if no one is working on it

@binarylogic
Copy link
Contributor

@njasm go for it! We're not currently working on it.

@njasm
Copy link

njasm commented Apr 3, 2021

@binarylogic ok great, I'm on it! 👍

@theyough
Copy link

theyough commented Sep 3, 2021

@njasm any updates ?

@njasm
Copy link

njasm commented Sep 3, 2021

@theyough I didn't have the chance to start it, I had to shift focus to other priorities and right now unfortunately I don't have the bandwidth to work on the amqp sink in the near future. - I expect to return to it (if in the meantime no one take a stab at it) but I won't be able to look into it in the next 2/3 months for sure.

@theyough
Copy link

theyough commented Sep 4, 2021

#7120, it looks like it s almost done

@jszwedko jszwedko added sink: new A request for a new sink and removed needs: approval Needs review & approval before work can begin. meta: good first issue Anything that is good for new contributors. labels Aug 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain: logs Anything related to Vector's log events domain: sinks Anything related to the Vector's sinks sink: new A request for a new sink type: feature A value-adding code addition that introduce new functionality.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants