This repository provides Dockerfiles which can be used to build an image with bcc v.0.22.0 and ebpf_exporter v.1.2.5 for different versions of Ubuntu.
Currently supported:
- Ubuntu 18.04 (bionic)
- Dockerfile.bionic
 
- Ubuntu 20.04 (focal)
- Dockerfile.focal
 
You can also use the following prebuilt container images:
docker build . -t ebpf_exporter -f Dockerfile.focal
Create ebpf_exporter config as ebpf-config.yaml in a config folder.
sudo docker run -v ${PWD}/config:/config \
    --privileged \
    -v /sys/fs/cgroup:/sys/fs/cgroup:ro \
    -v /sys/kernel/debug:/sys/kernel/debug:ro \
    -v /lib/modules:/lib/modules:ro \
    -p 9435:9435 \
    -it \
    ebpf_exporterOr use the provided start.sh script:
sudo ./start.shNote This runs a docker container with extended privileges, which might be a bad idea.
Open http://localhost:9345 in a browser.
- Create example Kubernetes manifest
- Create helm chart to run ebpf_exporter as a daemonset