Categorygithub.com/fluidity-money/fluidity-appcmdmicroservice-common-rabbitmq-backlog-checker
package
0.0.0-20240904073751-07d62d3164ce
Repository: https://github.com/fluidity-money/fluidity-app.git
Documentation: pkg.go.dev

# README

AMQP Queue Backlog Alerter

Connects to AMQP management API and polls endpoints to get queue message states. Sends alert to Discord if amount of "ready" or "unacknowledged" messages exceeds given limits.

Environment variables

NameDescription
FLU_RABBIT_MAX_READYMaximum number of readies acceptable before sending Discord alert
FLU_RABBIT_MAX_UNACKEDMaximum number of unacks acceptable before sending Discord alert
FLU_RABBIT_MAX_DEAD_LETTERMaximum number of dead letters acceptable before sending Discord alert
FLU_AMQP_USERUsername of RabbitMQ management user
FLU_AMQP_USER_PASSPassword of RabbitMQ management user
FLU_AMQP_QUEUE_ADDRAMQP queue address connected to to receive and send messages down.
FLU_REDIS_PASSWORDPassword to use when connecting to the Redis host.
FLU_DISCORD_WEBHOOKDiscord webhook to use when the Discord Notify function is used.

Building

make build

Testing

make test

Docker

make docker