All Projects → kinvolk-archives → cgnet

kinvolk-archives / cgnet

Licence: Apache-2.0 license
No description or website provided.

Programming Languages

go
31211 projects - #10 most used programming language
c
50402 projects - #5 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to cgnet

cloud-native-bpf-workshop
No description or website provided.
Stars: ✭ 94 (+20.51%)
Mutual labels:  bpf, kinvolk
KubeArmor
Cloud-native Runtime Security Enforcement System
Stars: ✭ 434 (+456.41%)
Mutual labels:  bpf
Polycube
eBPF/XDP-based software framework for fast network services running in the Linux kernel.
Stars: ✭ 217 (+178.21%)
Mutual labels:  bpf
alon
Remix for Solana.
Stars: ✭ 87 (+11.54%)
Mutual labels:  bpf
libbpf-sys
Rust bindings to libbpf from the Linux kernel
Stars: ✭ 103 (+32.05%)
Mutual labels:  bpf
ebpf
eBPF package for Go
Stars: ✭ 25 (-67.95%)
Mutual labels:  bpf
Npf
NPF: packet filter with stateful inspection, NAT, IP sets, etc.
Stars: ✭ 160 (+105.13%)
Mutual labels:  bpf
go-tc
traffic control in pure go - it allows to read and alter queues, filters and classes
Stars: ✭ 245 (+214.1%)
Mutual labels:  bpf
DrawBridge
Layer 4 Single Packet Authentication Linux kernel module utilizing Netfilter hooks and kernel supported Berkeley Packet Filters (BPF)
Stars: ✭ 81 (+3.85%)
Mutual labels:  bpf
ebpfault
A BPF-based syscall fault injector
Stars: ✭ 65 (-16.67%)
Mutual labels:  bpf
connect
tiny cross-platform socket API library
Stars: ✭ 46 (-41.03%)
Mutual labels:  bpf
oko
Extend Open vSwitch with BPF programs at runtime
Stars: ✭ 29 (-62.82%)
Mutual labels:  bpf
LAF
Linux Application Firewall
Stars: ✭ 8 (-89.74%)
Mutual labels:  bpf
Snuffy
Snuffy is a simple command line tool to inspect SSL/TLS data.
Stars: ✭ 236 (+202.56%)
Mutual labels:  bpf
ebpfpub
ebpfpub is a generic function tracing library for Linux that supports tracepoints, kprobes and uprobes.
Stars: ✭ 86 (+10.26%)
Mutual labels:  bpf
Libseccomp Golang
The libseccomp golang bindings repository
Stars: ✭ 161 (+106.41%)
Mutual labels:  bpf
ida-bpf-processor
BPF Processor for IDA Python
Stars: ✭ 41 (-47.44%)
Mutual labels:  bpf
cgroups-rs
Native Rust library for managing control groups under Linux
Stars: ✭ 68 (-12.82%)
Mutual labels:  cgroup
p2pflow
Ethereum p2p traffic analysis with eBPF
Stars: ✭ 24 (-69.23%)
Mutual labels:  bpf
portablebpf
You came here so you could have a base code to serve you as an example on how to develop a BPF application, compatible to BCC and/or LIBBPF, specially LIBBPF, having the userland part made in C or PYTHON.
Stars: ✭ 32 (-58.97%)
Mutual labels:  bpf

cgnet

cgnet uses eBPF to gather network statistics from cgroups.

$ make

# to test the cli tool
$ ./cgnet top <path to cgroup>

# to run the exporter outside of k8s
$ ./cgnet export --kubeconfig <path to kubeconfig>

# to run the exporter as a DaemonSet in the cluster
$ kubectl apply -f manifests/deploy/all-in-one.yaml

cgnet top

Uses the BPF program to monitor the cgroup specified on the command line.

cgnet export

Interacts with the Kubernetes API to retrieve a list of running pods and installs the BPF program for their cgroups. It then exports the data for Prometheus.

We provide the following to deploy and test the exporter:

  • Dockerfile - builds a simple minimal container running cgnet export
  • manifests/deploy - has Kubernetes manifests to run the container with the exporter
  • manifests/example - has configuration files to set up a cluster for testing the exporter

Dependencies

This repository experiments with Daniel Mack's eBPF hooks for cgroups.

  • Linux v4.10-rc
  • CONFIG_CGROUP_BPF=y

Vendoring

We use dep.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].