Skip to content

srnbckr/ebpf-exporter-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ebpf_exporter in Docker

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:

Build image

docker build . -t ebpf_exporter -f Dockerfile.focal

Run container

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_exporter

Or use the provided start.sh script:

sudo ./start.sh

Note This runs a docker container with extended privileges, which might be a bad idea.

Test container

Open http://localhost:9345 in a browser.

TODO

  • Create example Kubernetes manifest
  • Create helm chart to run ebpf_exporter as a daemonset

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages