From df240755311089e0c94ea837e2fd12ec1aae3a63 Mon Sep 17 00:00:00 2001 From: kongfei Date: Sun, 29 Sep 2024 18:33:58 +0800 Subject: [PATCH] chore: disable vm_line_processing_duration_seconds_bucket of mtail --- inputs/mtail/internal/runtime/vm/vm.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/inputs/mtail/internal/runtime/vm/vm.go b/inputs/mtail/internal/runtime/vm/vm.go index ae68fda7..2a565f16 100644 --- a/inputs/mtail/internal/runtime/vm/vm.go +++ b/inputs/mtail/internal/runtime/vm/vm.go @@ -959,10 +959,10 @@ func (v *VM) execute(t *thread, i code.Instr) { // ProcessLogLine handles the incoming lines by running a fetch-execute cycle // on the VM bytecode with the line as input to the program, until termination. func (v *VM) ProcessLogLine(ctx context.Context, line *logline.LogLine) { - start := time.Now() - defer func() { - LineProcessingDurations.WithLabelValues(v.name).Observe(time.Since(start).Seconds()) - }() + // start := time.Now() + // defer func() { + // LineProcessingDurations.WithLabelValues(v.name).Observe(time.Since(start).Seconds()) + // }() t := new(thread) t.matched = false v.t = t