Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/dorkamotorka/ebpf-pinned-map-metrics
- Owner: dorkamotorka
- Created: 2024-08-01T17:17:28.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-08T11:44:55.000Z (5 months ago)
- Last Synced: 2024-08-08T13:51:51.658Z (5 months ago)
- Language: Go
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```