From 2443dbb9e89235ee08c842f3097655ef4da87cd0 Mon Sep 17 00:00:00 2001 From: Lars Lehtonen Date: Wed, 23 Mar 2022 09:54:29 -0700 Subject: [PATCH] metricbeat/module/system/memory: fix dropped error (#30891) --- metricbeat/module/system/memory/memory.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/metricbeat/module/system/memory/memory.go b/metricbeat/module/system/memory/memory.go index 9ff4a777aad..4efb08be981 100644 --- a/metricbeat/module/system/memory/memory.go +++ b/metricbeat/module/system/memory/memory.go @@ -60,7 +60,9 @@ func (m *MetricSet) Fetch(r mb.ReporterV2) error { memory := common.MapStr{} err = typeconv.Convert(&memory, &eventRaw) - + if err != nil { + return err + } r.Event(mb.Event{ MetricSetFields: memory, })