Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dorkamotorka/postgres-ebpf


https://github.com/dorkamotorka/postgres-ebpf

Last synced: 16 days ago
JSON representation

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.

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
```