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

Add Queue and Connection status metrics #91

Closed
muralikanagala opened this issue Aug 1, 2018 · 10 comments
Closed

Add Queue and Connection status metrics #91

muralikanagala opened this issue Aug 1, 2018 · 10 comments
Assignees
Milestone

Comments

@muralikanagala
Copy link

Queue and Connection status metrics would be really helpful while troubleshooting rabbitmq issues.
I have tried adding that feature but was not successful because I am new to golang.
Is that something already taken care or on the road map?

@kfreem02
Copy link

kfreem02 commented Aug 3, 2018

Rabbit UI shows State column (Idle, Running, Blocked, Blocking, Flow, etc) for queues, connections and channels . Would be nice to have those values as a label either within an existing metric or as a separate metric.

@leezake
Copy link

leezake commented Aug 10, 2018

Queues
Labels: vhost, queue, durable, policy
about queue_messages_ready,queue_messages_unacknowledged ...... is not unknown. why?

@gaizeror
Copy link

Would be awesome to have queue status as a label!
We are having a lot of "stuck queues" problems and we cant monitor it well.
all we can do it messages_ready > X for Y mins, but we get tons of false positive alarms.

kbudde added a commit that referenced this issue Oct 28, 2018
@kbudde
Copy link
Owner

kbudde commented Nov 3, 2018

I've added two new metrics in v1.0 branch.
https://github.com/kbudde/rabbitmq_exporter/tree/v1.0

Can you please check if the metrics queue_status and connection_status are usefull for you?

@gaizeror
Copy link

gaizeror commented Nov 3, 2018

@kbudde can you create a binary / how to create a binary? it's not on the release folder

@kbudde
Copy link
Owner

kbudde commented Nov 4, 2018

Hi,

I've created now a pre-release:
https://github.com/kbudde/rabbitmq_exporter/releases/tag/v1.0-wip1

Inside are two new metrics: queue_status and connection_status.
Labels:
queue_status: vhost, queue, state
connection_status: vhost, node, peer_host, user, state

Both metrics are constant 1. The state is representing the queue/connection state (running, blocked, etc.).
So you can monitor for queue_status{state="blocked"}>0 or delta(queue_status{state="running"}[1m])<0

@kbudde kbudde self-assigned this Nov 4, 2018
@kbudde kbudde added this to the 1.0.0 milestone Nov 4, 2018
@gaizeror
Copy link

gaizeror commented Nov 4, 2018

@kbudde
Hi, looks like the queue state is always on "running" mode even if the queue is "idle"
will make sure when one of my queues will get stuck

@kbudde
Copy link
Owner

kbudde commented Feb 4, 2019

@gaizeror did the status change in the meantime?
Can you send me the data of the /api/queues endpoint. I want to check the response of the rabbitmq.

@RicoToothless
Copy link

RicoToothless commented Feb 23, 2019

ask a small question. (I am new here)
About troubleshooting, is there have any way to set up multi RABBIT_URL?
because we have multi-environment.
Thanks

@kbudde
Copy link
Owner

kbudde commented Feb 28, 2019

@RicoToothless It is not possible. You can setup one exporter per rabbitmq #92
If you have more questions please file a new issue.

@kbudde kbudde closed this as completed Feb 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants