dapr / dapr

Dapr is a portable, event-driven, runtime for building distributed applications across cloud and edge.
https://dapr.io
Apache License 2.0
23.54k stars 1.85k forks source link

feat: new resiliency metric for CircuitBreakerState (last_value / gauge) #7807

Open jake-engelberg opened 2 weeks ago

jake-engelberg commented 2 weeks ago

Existing:

dapr_resiliency_loaded: The number of resiliency policies loaded. dapr_resiliency_count: The number of times a resiliency policy has been executed. dapr_resiliency_activations_total: Number of times a resiliency policy has been activated in a building block after a failure or after a state change.

Added:

dapr_resiliency_cb_state: A resiliency policy's current CircuitBreakerState state. 4 series are generated, one for each state, with the tag status being [unknown, closed, half-open, open]. The current state is 1, all other states are 0.

https://github.com/dapr/dapr/issues/7476

yaron2 commented 2 weeks ago

cc @halspang

jake-engelberg commented 2 weeks ago

cc @halspang

Meant to have this in draft, but also wanted to bring up this Q, please take a look, it's about the validity of the issue: https://github.com/dapr/dapr/issues/7476#issuecomment-2161832889