Unregister old metrics when a node gets removed or changes RPC address

Description

When a node gets removed (or gets a new broadcastRpcAddress, see ), its metrics stay there with the last known value.

We might want to unregister them. This is a bit tricky other components might still update them if they didn't get the node change yet, and the registry will recreate a metric if it does not exist.

Environment

None

Pull Requests

None

Status

Assignee

Unassigned

Reporter

Olivier Michallat

Labels

None

PM Priority

None

Reproduced in

None

Affects versions

None

Fix versions

Pull Request

None

Doc Impact

None

Size

None

External issue ID

None

External issue ID

None

Priority

Major
Configure