Skip to content

Commit

Permalink
Add stacks total number metric
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaefer committed Jan 14, 2025
1 parent 8ba41ea commit 03ccff4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions config/initializers/yabeda.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,12 @@
30, 60, 120, 300, 1800, 3600, 86_400
].freeze
end
gauge :stacks_total do
comment 'Total number of stacks'
end

collect do
supervisor.stacks_total.set({}, Stack.count)
end
end
end

0 comments on commit 03ccff4

Please sign in to comment.