Thibault bui Koechlin 5 anos atrás
pai
commit
ae46c0b0c7
1 arquivos alterados com 2 adições e 3 exclusões
  1. 2 3
      pkg/acquisition/file_reader.go

+ 2 - 3
pkg/acquisition/file_reader.go

@@ -257,9 +257,8 @@ LOOP:
 			if line.Text == "" { //skip empty lines
 			if line.Text == "" { //skip empty lines
 				continue
 				continue
 			}
 			}
-			if ctx.Profiling {
-				ReaderHits.With(prometheus.Labels{"source": ctx.Filename}).Inc()
-			}
+			ReaderHits.With(prometheus.Labels{"source": ctx.Filename}).Inc()
+
 			l.Raw = line.Text
 			l.Raw = line.Text
 			l.Labels = ctx.Labels
 			l.Labels = ctx.Labels
 			l.Time = line.Time
 			l.Time = line.Time