fix: basename in prometheus
This commit is contained in:
parent
66c71faf10
commit
60b893d960
@ -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)
|
result, err := s.db.InsertMany(mongoTimeoutCtx(context.Background()), batchBson, nil)
|
||||||
promShipperMongoSent.WithLabelValues(name).Add(float64(
|
promShipperMongoSent.WithLabelValues(baseName).Add(float64(
|
||||||
len(result.InsertedIDs)))
|
len(result.InsertedIDs)))
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user