Skip to content

Commit

Permalink
libbeat/cmd/instance/metrics: fix error message (elastic#23413)
Browse files Browse the repository at this point in the history
Upon failure to retrieve cgroup stats, the log
message should say "error getting cgroup stats"
and not "error getting group status".
  • Loading branch information
axw authored Jan 11, 2021
1 parent bbd1775 commit 8e8bfc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libbeat/cmd/instance/metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ func reportBeatCgroups(_ monitoring.Mode, V monitoring.Visitor) {
}
selfStats, err := cgroups.GetStatsForProcess(pid)
if err != nil {
logp.Err("error getting group status: %v", err)
logp.Err("error getting cgroup stats: %v", err)
return
}
// GetStatsForProcess returns a nil selfStats and no error when there's no stats
Expand Down

0 comments on commit 8e8bfc8

Please sign in to comment.