fix(module/s3): prometheus metrics cardinality overflow

This commit is contained in:
Zaulao 2023-12-05 17:02:01 -03:00
parent d2d788c5dc
commit a9b655f1ad
No known key found for this signature in database
GPG key ID: 6284CDC1C8D24486

View file

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