-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix creation of already pruned tenants
When a tenant is pruned from a Receiver, its metrics will remain in the shipper's Prometheus registry. This leads to a panic when the same tenant is created again in the Receiver since the same metrics will be created again. The current solution for the TSDB metrics is to wrap the registry in an UnRegisterer which can deregister metrics with the same name before registering new metrics. This commit applies the same solution to the shipper metrics. Signed-off-by: Filip Petkovski <[email protected]>
- Loading branch information
1 parent
544d67a
commit 0a65192
Showing
3 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters