Particular / NServiceBus

Build, version, and monitor better microservices with the most powerful service platform for .NET
https://particular.net/nservicebus/
Other
2.08k stars 647 forks source link

OpenTelemetry Metrics: Emit an UpDownCounter (gauge) for active handlers #7083

Open mauroservienti opened 3 months ago

mauroservienti commented 3 months ago

As proposed in https://github.com/Particular/NServiceBus/pull/6953#issuecomment-2181324381

bbrandt commented 2 months ago

Example of active handlers from one of our apps: image

Total Active Handlers

sum (nservicebus_messaging_active_handlers{kubernetes_namespace=~"$namespace", app_kubernetes_io_name=~"$service"})

Active Handlers Per Service

sum by(app_kubernetes_io_name) (nservicebus_messaging_active_handlers{kubernetes_namespace=~"$namespace", app_kubernetes_io_name=~"$service"})