fix: basename in prometheus
This commit is contained in:
		| @@ -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 { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user