{"id":43933032,"url":"https://github.com/digitalocean-labs/ebpf_exporter","last_synced_at":"2026-02-07T00:19:36.427Z","repository":{"id":241002646,"uuid":"803956584","full_name":"digitalocean-labs/ebpf_exporter","owner":"digitalocean-labs","description":"a pure-Go Prometheus exporter for the eBPF Linux subsystem","archived":false,"fork":false,"pushed_at":"2025-09-29T19:55:34.000Z","size":47,"stargazers_count":28,"open_issues_count":7,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-29T20:47:13.139Z","etag":null,"topics":["ebpf","hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/digitalocean-labs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-05-21T17:23:19.000Z","updated_at":"2025-09-29T18:49:57.000Z","dependencies_parsed_at":"2024-05-21T22:26:38.511Z","dependency_job_id":"f02e8558-ef70-4d62-8eaf-02f047c9bb11","html_url":"https://github.com/digitalocean-labs/ebpf_exporter","commit_stats":null,"previous_names":["digitalocean-labs/ebpf_exporter"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/digitalocean-labs/ebpf_exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalocean-labs%2Febpf_exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalocean-labs%2Febpf_exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalocean-labs%2Febpf_exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalocean-labs%2Febpf_exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/digitalocean-labs","download_url":"https://codeload.github.com/digitalocean-labs/ebpf_exporter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalocean-labs%2Febpf_exporter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29181330,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T23:15:33.022Z","status":"ssl_error","status_checked_at":"2026-02-06T23:15:09.128Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ebpf","hacktoberfest"],"created_at":"2026-02-07T00:19:33.752Z","updated_at":"2026-02-07T00:19:36.417Z","avatar_url":"https://github.com/digitalocean-labs.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ebpf_exporter\n\nA pure-Go Prometheus exporter for the eBPF Linux subsystem. It exports metrics for currently loaded eBPF resources like programs, maps, and links.\n\nIt was partially inspired by the built-in metrics provided by [github.com/cloudflare/ebpf_exporter](https://github.com/cloudflare/ebpf_exporter). While that project was built for creating _custom_ metrics out of eBPF maps, this project aims to be a bit smaller in scope, by only exporting metrics based on information that Linux provides out-of-the-box, more akin to `node_exporter`.\n\nIt's built on top of the [Cilium eBPF Go library](github.com/cilium/ebpf).\n\nIMPORTANT: `ebpf_exporter` must be run as a privileged process. Specifically, the `CAP_SYS_ADMIN` capability is required; `CAP_BPF` and `CAP_PERFMON` are insufficient, even on 6.x kernels.\n\n## Design Goals\n\n- Pure Go (never any CGO, and no `libbpf`)\n- Run on any modern Linux (4.x) out of the box\n- No custom eBPF metrics; only those provided by Linux by default\n- Follow best practices of Prometheus exporters\n\n## Metrics\n\nMost metrics will have an `id` style key, on which the `info` metrics can be joined to get more information.\n\n### Programs\n\n- `ebpf_program_info`\n- `ebpf_program_run_count`\n- `ebpf_program_run_duration_nanoseconds`\n\n#### Program stats collection\n\nThe exporter offers optional collection BPF program stats (run count and total duration), a feature offered by the Linux kernel since 5.1. In this exporter, it's only available if running on Linux 5.8 or higher.\n\nThere are 3 modes (`--prog-stats-mode`):\n\n- `disabled`: This is the default. BPF program stats are not enabled and not collected.\n- `sample`: BPF program stats are enabled only for the duration of a sampling interval, defined by the required `--prog-stats-sample-interval` and `--prog-stats-sample-duration` flags. Metrics will still be collected and exported, but they will not be incremented outside of the desired interval.\n- `enabled`: BPF program stats are always enabled and collected. This is not recommended in production, especially for latency-sensitive eBPF programs, due to overhead.\n\nNOTE: When BPF stats are enabled, they are enabled for all currently loaded BPF programs. Linux does not offer a feature to selectively enable statistics for only a subset of current programs.\n\n### Maps\n\n- `ebpf_map_info`\n- `ebpf_map_entries`\n\n### Links\n\n- `ebpf_link_info`\n- `ebpf_link_cgroup_info`\n- `ebpf_link_netns_info`\n- `ebpf_link_tracing_info`\n- `ebpf_link_xdp_info`\n- `ebpf_link_tcx_info`\n- `ebpf_link_netfilter_info`\n- `ebpf_link_netkit_info`\n- `ebpf_link_kprobe_info`\n- `ebpf_link_perf_event_info`\n\n### BTF\n\n- `ebpf_btf_info`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitalocean-labs%2Febpf_exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigitalocean-labs%2Febpf_exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitalocean-labs%2Febpf_exporter/lists"}