Explorar o código

fix(module/s3): prometheus metrics cardinality overflow

Zaulao hai 1 ano
pai
achega
a9b655f1ad
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      pkg/acquisition/modules/s3/s3.go

+ 1 - 1
pkg/acquisition/modules/s3/s3.go

@@ -433,7 +433,7 @@ func (s *S3Source) readFile(bucket string, key string) error {
 			l.Time = time.Now().UTC()
 			l.Process = true
 			l.Module = s.GetName()
-			l.Src = bucket + "/" + key
+			l.Src = bucket
 			var evt types.Event
 			if !s.Config.UseTimeMachine {
 				evt = types.Event{Line: l, Process: true, Type: types.LOG, ExpectMode: types.LIVE}