We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a new feature that can start monitoring by container name or container id.
This could be a workaround.
sudo gmon -path /proc/$(docker inspect -f '{{.State.Pid}}' container-name)/root/path/to/binary
Example code to get cgroup_id.
cgroup_id
u64 get_task_cgroup_id(struct task_struct *task) { struct css_set *cgroups; u64 cgroup_id; bpf_rcu_read_lock(); cgroups = task->cgroups; cgroup_id = cgroups->dfl_cgrp->kn->id; bpf_rcu_read_unlock(); return cgroup_id; }
find /sys/fs/cgroup -inum <cgroup_id>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Add a new feature that can start monitoring by container name or container id.
This could be a workaround.
sudo gmon -path /proc/$(docker inspect -f '{{.State.Pid}}' container-name)/root/path/to/binary
Example code to get
cgroup_id
.The text was updated successfully, but these errors were encountered: