Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/dorkamotorka/ebpf-pinned-map-metrics

Prometheus Exporter for Pinned eBPF Map Metrics
https://github.com/dorkamotorka/ebpf-pinned-map-metrics

Last synced: about 1 month ago
JSON representation

Prometheus Exporter for Pinned eBPF Map Metrics

Awesome Lists containing this project

README

        

# ebpf-pinnedmap-metrics

## Development Status

**Note:** This concept is only able to expose metrics for pinned maps. So this was abandoned and improved for all maps in: https://github.com/dorkamotorka/ebpf-map-metrics

So far it supports metrics for:

- Hash eBPF Map
- Array eBPF Map
- Hash LRU eBPF Map

## How to Run

To run the program, follow these steps:

```
go generate
go build
sudo ./ebpf-pinned-map-metrics
```

On each host you can trigger actions on eBPF map using:

```
sudo bpftool map
sudo bpftool map update id key 0 0 0 0 value 1 0 0 0
sudo bpftool map delete id key 0 0 0 0
sudo bpftool map lookup id key 0 0 0 0
```