vectordotdev / vector

A high-performance observability data pipeline.
https://vector.dev
Mozilla Public License 2.0
17.58k stars 1.54k forks source link

AMQP source: Support automatic recovery from a broken connection #20735

Open amanmahajan26 opened 3 months ago

amanmahajan26 commented 3 months ago

A note for the community

Use Cases

We recently switched from Logstash to Vector for consuming messages from RabbitMQ using the AMQP source. While the pipeline works fine, whenever we make changes to our RabbitMQ nodes like upscaling or downscaling, the connection gets broken and Vector needs to be restarted to start consuming messages again. In Logstash, there is a automatic_recovery feature (https://www.elastic.co/guide/en/logstash/7.17/plugins-inputs-rabbitmq.html#plugins-inputs-rabbitmq-automatic_recovery) due to which such restart is not required. Would be nice to have this feature available for Vector AMQP source as well.

Configuration:

[sources.raw_amqp] type = "amqp" connection_string = "" exchange_key = "queue" queue = ""

Attempted Solutions

No response

Proposal

No response

References

No response

Version

0.37.1

jszwedko commented 3 months ago

Thanks @amanmahajan26 ! Vector should definitely recover in these situations.