Skip to content

Commit

Permalink
metricbeat/module/system/memory: fix dropped error (#30891)
Browse files Browse the repository at this point in the history
  • Loading branch information
alrs authored Mar 23, 2022
1 parent 0c1b760 commit 2443dbb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion metricbeat/module/system/memory/memory.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
Expand Down

0 comments on commit 2443dbb

Please sign in to comment.