Skip to content

dapr_runtime_resiliency_loaded reported before metrics initialized  #5711

@jjcollinge

Description

@jjcollinge

In what area(s)?

/area runtime

/area operator

/area placement

/area docs

/area test-and-release

What version of Dapr?

v1.9.1-278-ge6dca1a5

Expected Behavior

When resiliency policies are loaded the dapr_runtime_resiliency_loaded metric is reported.

Actual Behavior

When resiliency policies are loaded the dapr_runtime_resiliency_loaded metric is not reported.

I've configured daprd to load a resiliency policy and noticed that I was only seeing the dapr_runtime_resiliency_count metric and not the dapr_runtime_resiliency_loaded metric. Inspecting the code quickly, it looks like the resiliencies are loaded here before the runtime has been initialized. However, the metrics are not actually enabled until the initialization occurs in the runtime initialization which occurs later. That means that when the metrics are initially reported, the check to see if the metrics are enabled here will be false and the metric will not be counted.

Steps to Reproduce the Problem

Setup daprd to load a resiliency policy and check the metrics endpoint to see the dapr_runtime_resiliency_loaded metric is not there.

Release Note

RELEASE NOTE: FIX Bug stopping dapr_runtime_resiliency_loaded being reported.

Metadata

Metadata

Assignees

Labels

kind/bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions