Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dorkamotorka/postgres-ebpf
https://github.com/dorkamotorka/postgres-ebpf
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dorkamotorka/postgres-ebpf
- Owner: dorkamotorka
- License: bsd-2-clause
- Created: 2024-06-10T07:23:16.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-07-08T08:13:16.000Z (6 months ago)
- Last Synced: 2024-07-08T10:20:17.817Z (6 months ago)
- Language: C
- Size: 9.88 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.
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
```