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 helper method to query the latency on the Queue object #415

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

andersonkrs
Copy link

Hey all!

I'm using Yabeda to collect some metrics on a rails app that uses solid_queue. I send some metrics like the latency on each queue. Currently I use a little patch to accomplish that. I wonder if we can upstream this path just to make it more convenient for other people to access solid_queue's API. 🤔

My Yabeda config example

Yabeda.configure do
  group :solid_queue do
    gauge :queue_latency, unit: :seconds, tags: [:queue]
  end

  collect do
    SolidQueue::Queue.all.each do |queue|
      solid_queue.queue_latency.set({ queue: queue.name }, queue.latency)
    end
  end
end

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

Successfully merging this pull request may close these issues.

1 participant