We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 806cda4 commit 18d38afCopy full SHA for 18d38af
2 files changed
metricbeat/module/system/process/process.go
@@ -113,6 +113,7 @@ func (m *MetricSet) Fetch(r mb.ReporterV2) error {
113
if m.setpid == 0 {
114
procs, roots, err := m.stats.Get()
115
if err != nil && !errors.Is(err, process.NonFatalErr{}) {
116
+ // return only if the error is fatal in nature
117
return fmt.Errorf("process stats: %w", err)
118
}
119
metricbeat/module/system/process_summary/process_summary.go
@@ -71,6 +71,7 @@ func (m *MetricSet) Fetch(r mb.ReporterV2) error {
71
72
procList, degradeErr := process.ListStates(m.sys)
73
if degradeErr != nil && !errors.Is(degradeErr, process.NonFatalErr{}) {
74
75
return fmt.Errorf("error fetching process list: %w", degradeErr)
76
77
0 commit comments