RepositoryGoDEĐức
MA

martin-helmich/prometheus-nginxlog-exporter

Export metrics from Nginx access log files to Prometheus

1.1ksao
190fork
25issue
0lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: metrics-exporter

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: prometheus-exporter

#1 Repository của tuần

7
TINIX TRENDING·Chủ đề: nginx

#7 Repository của tuần

📊 Xuất metrics log NGINX sang Prometheus chỉ với một binary Go

Một helper tool đọc liên tục file log truy cập NGINX và tự động xuất metrics cho Prometheus — không cần viết nhiều dòng cấu hình.

prometheus-nginxlog-exporter là công cụ viết bằng Go, liên tục đọc file log truy cập NGINX (hoặc bất kỳ file log tương tự nào) và xuất các metrics ra Prometheus. Dự án hỗ trợ nhiều cách triển khai: dùng trực tiếp qua dòng lệnh, cấu hình nâng cao bằng file HCL, đóng gói Docker, hoặc chạy như sidecar trong Kubernetes.

✨ Điểm nổi bật

  • Hỗ trợ nhiều format log: cấu hình format log linh hoạt qua tham số -format hoặc file cấu hình HCL
  • Cấu hình HCL: file cấu hình nâng cao với cú pháp HCL, có thể kiểm tra trước khi triển khai bằng -verify-config
  • Docker-ready: image sẵn có trên quay.io và ghcr.io, tag v1 ổn định cho production
  • Gói DEB/RPM: từ phiên bản 1.5.1, có gói cài đặt cho Debian/Ubuntu và RPM-based distros, tự động cấu hình systemd
  • Kubernetes sidecar: triển khai trong cùng pod với NGINX, nhận log qua syslog hoặc volume chia sẻ
  • Port mặc định 4040: expose metrics trên cổng 4040, dễ tích hợp với Prometheus scrape
  • Cài đặt đơn giản: binary, Docker, gói hệ thống, hoặc systemd — chọn cách phù hợp nhất

💡 Vì sao đáng chú ý

Dự án giải quyết nhu cầu phổ biến của bất kỳ ai đang chạy NGINX và muốn giám sát traffic, error rate, hay latency thông qua Prometheus. Thay vì phải tự parse log bằng script, exporter này làm việc liên tục ở chế độ daemon, xuất metrics theo chuẩn Prometheus để dashboards và alerting sử dụng ngay.

Nhiều cách cài đặt (Docker, DEB/RPM, hệ thống, Kubernetes) giúp việc triển khai linh hoạt theo hạ tầng hiện có. File cấu hình HCL cho phép tuỳ chỉnh format log, namespace, và các tham số mà không cần sửa code. Với 1.075 sao trên GitHub, đây là lựa chọn đáng tin cậy cho team đang tìm cách đưa metrics NGINX vào pipeline giám sát Prometheus.


#Prometheus #NGINX #MetricsExporter #OpenSource #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.

RepositoryPython
albertodonato/query-exporter

Export Prometheus metrics from SQL queries

535
Nov 22, 2026
RepositoryGo
avelino/awesome-go

A curated list of awesome Go frameworks, libraries and software

197.2k
Dec 2, 2026
RepositoryGo
prometheus/prometheus

The Prometheus monitoring system and time series database.

68.1k
Dec 2, 2026
RepositoryPython
EbookFoundation/free-programming-books

:books: Freely available programming books

403.1k
Nov 30, 2026
RepositoryPython
sherlock-project/sherlock

Hunt down social media accounts by username across social networks

120.3k
Dec 2, 2026
RepositoryC++
ClickHouse/ClickHouse

ClickHouse® is a real-time analytics database management system

51.3k
Dec 1, 2026
RepositoryGo
go-gitea/gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD

59.4k
Dec 1, 2026
RepositoryGo
charmbracelet/bubbletea

A powerful little TUI framework 🏗

46.0k
Dec 2, 2026
RepositoryGo
harness/harness

Harness Open Source is an end-to-end developer platform with Source Control Management, CI/CD Pipelines, Hosted Developer Environments, and Artifact Registries.

39.0k
Nov 30, 2026