Skip to content

Commit

Permalink
Support removal of registry from UserRegistries (#3511)
Browse files Browse the repository at this point in the history
* Add support for soft-removing user registries.

Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
  • Loading branch information
pstibrany authored and aknuds1 committed Sep 2, 2021
1 parent cf97424 commit fa9507b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ruler/manager_metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func (m *ManagerMetrics) AddUserRegistry(user string, reg *prometheus.Registry)

// RemoveUserRegistry removes user-specific Prometheus registry.
func (m *ManagerMetrics) RemoveUserRegistry(user string) {
m.regs.RemoveUserRegistry(user)
m.regs.RemoveUserRegistry(user, true)
}

// Describe implements the Collector interface
Expand Down

0 comments on commit fa9507b

Please sign in to comment.