Skip to content

Commit

Permalink
block sending stacks in metrics message
Browse files Browse the repository at this point in the history
Signed-off-by: Naiming Shen <naiming@zededa.com>
  • Loading branch information
naiming-zededa authored and rvs committed Jan 11, 2022
1 parent e9bff7c commit 1bdbf2d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/pillar/cmd/zedagent/handlemetrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -1541,7 +1541,8 @@ func createProcessMetrics(ctx *zedagentContext, reportMetrics *metrics.ZMetricMs
processMetric.VmBytes = p.VMBytes
processMetric.RssBytes = p.RssBytes
processMetric.MemoryPercent = p.MemoryPercent
processMetric.Stack = p.Stack
// XXX block sending stacks to reduce the size of metrics message, for now.
//processMetric.Stack = p.Stack
reportMetrics.Pr = append(reportMetrics.Pr, processMetric)
}
log.Tracef("Process metrics done: %v", reportMetrics.Pr)
Expand Down

0 comments on commit 1bdbf2d

Please sign in to comment.