This is a demo code, for showcasing Observability of the PostgreSQL protocol using eBPF. This code is inspired by Alaz, Kubernetes eBPF agent, developed by Anteon.
In order to try it out locally:
- Run eBPF program using
go generate go build sudo ./postgres
- Run the PostgresQL Container using
docker run --name postgres-container -e POSTGRES_PASSWORD=mysecretpassword -d -p 5432:5432 postgres
- Run client inside
/test
usinggo run client.go
- In another shell, inspect eBPF program logs using
sudo cat /sys/kernel/debug/tracing/trace_pipe
- To run performance evaluation, inside
/perf
directory run:go run measure.go