Expose total bus capacity as metric #2677
Labels
Priority 2: Should
High priority. Ideally, these issues are part of the release they’re assigned to.
Status: Under Discussion
Use to signal that the issue in question is being discussed.
Type: Enhancement
Use to signal an issue enhances an already existing feature of the project.
Enhancement Description
Exposing the capacity of a bus will allow users to better monitor the capacity of the application,
Current Behaviour
The capacity metrics expose the percentage of time the thread pool was busy - reflecting the amount of busy threads, up to the max thread pool size.
When monitoring this, the maximum value depends on the number of instances, which can be increased dynamically. This is very easy to do wrong.
Wanted Behaviour
Expose a
commandBus_capacity_total
andqueryBus_capacity_total
, containing the thread pool sizes for these busses.This will allow a prometheus query resulting in a percentual capacity, like so:
sum by(app) (commandBus_capacity) / sum by(app) (commandBus_capacity_total)
Possible Workarounds
Build it yourself, like this:
The text was updated successfully, but these errors were encountered: