prometheus/procfs
procfs provides functions to retrieve system, kernel and process metrics from the pseudo-filesystem proc.
Thành tựu nổi bật
Những danh hiệu mới nhất của dự án
#1 Repository của tuần
#1 Repository của tuần
#2 Repository của tuần
📊 procfs: Thư viện Go truy cập metric kernel qua /proc và /sys
Thư viện Go dùng để lấy metric hệ thống, kernel, process từ pseudo-filesystem /proc và /sys.
procfs là một package Go cung cấp các hàm để truy xuất thông tin từ pseudo-filesystem /proc và /sys. Dự án do nhóm Prometheus phát triển, hỗ trợ lấy metric chi tiết về CPU, thiết bị lưu trữ, quá trình và các thành phần hệ thống khác. Lưu ý: API có thể thay đổi không tương thích ngược.
✨ Điểm nổi bật
- Tổ chức theo nguồn dữ liệu: Tách package theo /proc, /sys hoặc cả hai.
- FS type: Mỗi package chứa kiểu FS đại diện cho đường dẫn /proc hoặc /sys.
- CPU stats: Thống kê CPU từ /proc/stat qua package gốc.
- Block device metrics: Gói blockdevice hỗ trợ truy cập đồng thời /proc và /sys.
- Test fixtures: Sử dụng ttar để lưu trữ ví dụ test từ /proc và /sys.
- make test: Hỗ trợ chạy unit test.
- make update_fixtures: Cập nhật fixtures.ttar từ thư mục testdata/fixtures.
💡 Vì sao đáng chú ý
procfs khác biệt nhờ cách tổ chức logic rõ rệt theo nguồn dữ liệu thực tế. Phù hợp cho dự án cần giám sát hệ thống bằng Go mà không phụ thuộc công cụ bên ngoài.
#Go #procfs #Prometheus #SystemMetrics #Linux #kernel #TiniX
Dự án tương tự
Khám phá các dự án và mô hình AI khác có sự tương đồng.
The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
Get up and running with Inkling, Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet.