fix: basename in prometheus

This commit is contained in:
rasmus 2022-11-06 15:23:20 +02:00
parent 66c71faf10
commit 60b893d960

View File

@ -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 {