Skip to content

Latest commit

 

History

History
30 lines (26 loc) · 860 Bytes

README.md

File metadata and controls

30 lines (26 loc) · 860 Bytes

PostgresQL eBPF

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.

postgres

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 using
    go 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