This bug came out of #130110, the issue is the metrics which are initially created are the ones which are registered. Previously, the values for the metrics was updated, but now the references are changed, despite the old metric references being the ones used by the registry.
What needs to happen is the metrics themselves need to be changed, they either need to close in the container for the certificates or their function needs to be overridden.
Describe the problem
This bug came out of #130110, the issue is the metrics which are initially created are the ones which are registered. Previously, the values for the metrics was updated, but now the references are changed, despite the old metric references being the ones used by the registry.
What needs to happen is the metrics themselves need to be changed, they either need to close in the container for the certificates or their function needs to be overridden.
Jira issue: CRDB-44362