Skip to content

Commit

Permalink
replicate: fix panic: duplicate metrics collector registration attemp…
Browse files Browse the repository at this point in the history
…ted (#6576)

Signed-off-by: Philip Gough <philip.p.gough@gmail.com>
  • Loading branch information
philipgough committed Aug 1, 2023
1 parent a35a5b2 commit e1a3ec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/replicate/replicator.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func RunReplicate(
toBkt = objstoretracing.WrapWithTraces(
objstore.WrapWithMetrics(
toBkt,
prometheus.WrapRegistererWithPrefix("thanos_", prometheus.WrapRegistererWith(prometheus.Labels{"replicate": "from"}, reg)),
prometheus.WrapRegistererWithPrefix("thanos_", prometheus.WrapRegistererWith(prometheus.Labels{"replicate": "to"}, reg)),
toBkt.Name(),
),
)
Expand Down

0 comments on commit e1a3ec1

Please sign in to comment.