{"repo":"SRodi/ebpf-prometheus-metrics","free":true,"listed":false,"github":"https://github.com/SRodi/ebpf-prometheus-metrics","clone":"git clone https://github.com/SRodi/ebpf-prometheus-metrics.git","description":"This project process eBPF events into Prometheus metrics via a Go user-space application. A Grafana dashboard is included to visualize Kernel Network Latency.","language":"C","stars":16,"topics":["ebpf","go","kubernetes","prometheus","docker","grafana","helm","linux-kernel"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"Kernel Network Latency This program is an eBPF-based network latency monitoring tool that collects and exposes network packet latency metrics to Prometheus. It utilizes eBPF (Extended Berkeley Packet Filter) to attach probes to kernel functions related to packet reception and processing. The program captures timestamps at different stages of packet processing, calculates the latency, and records the source and destination IP addresses along with the protocol type. The collected data is then exposed as Prometheus metrics, which can be scraped and visualized using Prometheus and Grafana. The program sets up a ring buffer to read events from the eBPF program and processes these events in a separate goroutine. It converts the raw data into human-readable format and updates Prometheus metrics accordingly. The metrics include a gauge for the number of packets received and a histogram for the latency distribution. Additionally, the program starts an HTTP server to serve the Prometheus metrics endpoint, allowing Prometheus to scrape the metrics at regular intervals. This setup provides a powerful and efficient way to monitor network latency in real-time. BPF program Deescription This program is an eBPF (extended Berkeley Packet Filter) program written in C. It is designed to measure the latency of IP packets as they are processed by the Linux kernel. Here's a step-by-step explanation of how it works: 1. Includes and Definitions: - The program includes several headers required for eBP","default_branch":null,"files":null,"tree":[],"storefront":"/r/SRodi","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/SRodi/ebpf-prometheus-metrics/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}