Skip to main content
Account

Inspektor Gadget

Inspektor Gadget uses eBPF gadgets to inspect Kubernetes clusters and Linux hosts. Learn how to trace pods, files and network activity with cluster context.

Status
Stable
Category
Observability and Analysis
Subcategory
Observability
License
Apache-2.0 AND GPL-2.0-only WITH Linux-syscall-note
Technology matrix Explore Worth a look See the matrix

Inspektor Gadget is a collection of eBPF-based debugging and observation “gadgets” for Kubernetes, originally built at Kinvolk and now maintained by Microsoft. It gives you the BCC/bpftrace family of tools (execsnoop, opensnoop, tcptracer, biolatency, oomkill, etc.) but automatically enriched with Kubernetes metadata — pod, container, namespace, and node — so you can say “show me every file opened in pods matching label app=api” instead of “show me every file opened by PID 4712 on node ip-10-0-3-41.”

It runs as a DaemonSet. The ig binary loads eBPF programs into the kernel on each node and correlates the resulting events with the container runtime via the cgroup/mntns identifier. Gadgets come in several flavors: tracers that stream events, snapshotters that capture state at a point in time, profilers that collect stacks, and top-style gadgets. Inspektor Gadget supports optional WebAssembly modules and OCI image-based gadgets; image-based gadgets reached GA in v0.31.0, so gadgets can now be pulled and distributed like container images.

It is the closest thing Kubernetes has to a first-class equivalent of strace and bpftrace for clusters. For deeper runtime security use cases overlap with Falco and Tetragon, but Inspektor Gadget is deliberately aimed at ad-hoc investigation rather than rule-based alerting.

Observability

Email signup loads here. You can also manage email preferences in account settings.

Build Inspektor Gadget? I'll show you where engineers get stuck with it → Back free content for the community →