From 60b893d96054d2cc75a010f33278ce5d9fe13bac Mon Sep 17 00:00:00 2001 From: rasmus Date: Sun, 6 Nov 2022 15:23:20 +0200 Subject: [PATCH] fix: basename in prometheus --- cmd/sender.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/sender.go b/cmd/sender.go index c0526fd..22bd895 100644 --- a/cmd/sender.go +++ b/cmd/sender.go @@ -131,7 +131,7 @@ func (s *submitter) senderRoutine(name string, batched <-chan []mLog, synced *bo } result, err := s.db.InsertMany(mongoTimeoutCtx(context.Background()), batchBson, nil) - promShipperMongoSent.WithLabelValues(name).Add(float64( + promShipperMongoSent.WithLabelValues(baseName).Add(float64( len(result.InsertedIDs))) if err != nil {