ソースを参照

fix(module/s3): prometheus metrics cardinality overflow

Zaulao 1 年間 前
コミット
a9b655f1ad
1 ファイル変更1 行追加1 行削除
  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}