Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tyrone-wu/bpf-map-telegraf-plugin
Telegraf input plugin for collecting metadata metrics on BPF maps on the host.
https://github.com/tyrone-wu/bpf-map-telegraf-plugin
Last synced: about 14 hours ago
JSON representation
Telegraf input plugin for collecting metadata metrics on BPF maps on the host.
- Host: GitHub
- URL: https://github.com/tyrone-wu/bpf-map-telegraf-plugin
- Owner: tyrone-wu
- License: apache-2.0
- Created: 2024-07-11T06:10:53.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-07-11T22:28:59.000Z (4 months ago)
- Last Synced: 2024-10-19T23:55:16.303Z (about 1 month ago)
- Language: Go
- Homepage:
- Size: 50.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `bpf-map-info` Input Plugin
Collects metadata information on BPF maps loaded on the host.
## Configuration
```conf
# Fetch metadata metrics from BPF maps on the host.
[[inputs.bpf_map]]
## Optional Fields## Size of map key in bytes.
##
## Corresponds to `key_size` field in `bpf_map_info`.
key_size = true## Size of map value in bytes.
##
## Corresponds to `value_size` field in `bpf_map_info`.
value_size = true## Max entries map can hold.
##
## Corresponds to `max_entries` field in `bpf_map_info`.
max_entries = true## Map flags used in loading.
##
## Corresponds to `map_flags` field in `bpf_map_info`.
map_flags = true
```## Metrics
These metrics are extracted from the `bpf_map_info` object.
- bpf_map
- tags:
- id
- type
- name
- fields:
- key_size (integer, bytes)
- value_size (integer, bytes)
- max_entries (integer, count)
- map_flags (integer)## Usage
Build binary:
```golang
go build -o bpf-map cmd/main.go
```Execute binary:
```golang
sudo ./bpf-map -config plugin.conf
```