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 and chrisberkhout committed Jun 1, 2023
1 parent 733673c commit 0c30ad4
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 0c30ad4

Please sign in to comment.