sysdig
Posted 会飞の鱼
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sysdig相关的知识,希望对你有一定的参考价值。
centos 7 安装
https://sysdig.com/opensource/sysdig/install/
1) Trust the Draios GPG key, configure the yum repository
rpm --import https://s3.amazonaws.com/download.draios.com/DRAIOS-GPG-KEY.public
curl -s -o /etc/yum.repos.d/draios.repo http://download.draios.com/stable/rpm/draios.repo
2) Install the EPEL repository
Note: The following command is required only if DKMS is not available in the distribution. You can verify if DKMS is available with yum list dkms
rpm -i http://mirror.us.leaseweb.net/epel/6/i386/epel-release-6-8.noarch.rpm
3) Install kernel headers
Warning: The following command might not work with any kernel. Make sure to customize the name of the package properly
yum -y install kernel-devel-$(uname -r)
4) Install sysdig
yum -y install sysdig
==========================================================================
sysdig -k https://109.105.30.155:5443 -K /etc/kubernetes/pki/admin.pem:/etc/kubernetes/pki/admin-key.pem
sysdig -k https://109.105.30.155:5443 -K /etc/kubernetes/pki/admin.pem:/etc/kubernetes/pki/admin-key.pem -s8192 -zw capture.scap
# ls
capture.scap
以上是关于sysdig的主要内容,如果未能解决你的问题,请参考以下文章
监控利器 sysdig - 每天5分钟玩转 Docker 容器技术(79)