Skip to content

Commit

Permalink
change cgroup pids debug log to warning when no pids found
Browse files Browse the repository at this point in the history
  • Loading branch information
jzwlqx committed Jan 15, 2024
1 parent e276b14 commit d8f66a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/exporter/nettop/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,9 @@ func cacheNetTopology(ctx context.Context) error {
var pids []int
if podCgroupPath != "" {
pids = tasksInsidePodCgroup(podCgroupPath)
log.Debugf("found %d pids under cgroup %s", len(pids), podCgroupPath)
if len(pids) == 0 {
log.Warnf("sandbox %s/%s: found 0 pids under cgroup %s", namespace, name, podCgroupPath)
}
}

status := sandboxStatus.Status
Expand Down

0 comments on commit d8f66a5

Please sign in to comment.