awolden / brakes

Hystrix compliant Node.js Circuit Breaker Library
MIT License
300 stars 35 forks source link

55 add cumulative counts to hystrix stream enhancement #111

Closed Floix closed 5 years ago

Floix commented 5 years ago

Added cumulative statistics to support request counter

As proposed in https://github.com/awolden/brakes/issues I added cumulative counters that are independent of buckets. These counter stream out total requests (timeouts, etc.) per breaker, as well as the diff between two report events. The latter is necessary to support Prometheus counters effectively.

Counters are supported and named aligned with the Hystrix Metrics and Monitoring guide: https://github.com/Netflix/Hystrix/wiki/Metrics-and-Monitoring