RepositoryPython
albertodonato

albertodonato/query-exporter

Export Prometheus metrics from SQL queries

535sao
115fork
13issue
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ủ đề: query

#1 Repository của tháng

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

#1 Repository của tháng

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

#1 Repository của tháng

📊 query-exporter: Thu thập metrics từ SQL truy vấn bằng Prometheus

Một công cụ xuất khẩu metrics Prometheus từ các truy vấn SQL, hỗ trợ nhiều loại cơ sở dữ liệu khác nhau thông qua SQLAlchemy.

query-exporter là một exporter cho Prometheus, cho phép thu thập metrics từ các truy vấn cơ sở dữ liệu theo thời gian. Dự án sử dụng SQLAlchemy để kết nối với nhiều engine cơ sở dữ liệu khác nhau bao gồm PostgreSQL, MySQL, Oracle và Microsoft SQL Server. Mỗi truy vấn có thể chạy trên nhiều cơ sở dữ liệu và cập nhật nhiều metrics.

✨ Điểm nổi bật

  • Hỗ trợ đa database: Kết nối đến PostgreSQL, MySQL, Oracle, SQL Server thông qua SQLAlchemy
  • Cấu hình YAML linh hoạt: Định nghĩa databases, metrics và queries trong một file cấu hình
  • Chạy truy vấn định kỳ: Hỗ trợ interval thời gian và lịch cron (schedule) cho từng query
  • Đa dạng loại metrics: Hỗ trợ gauge, summary, histogram, enum
  • Cấu hình mở rộng: Hỗ trợ nhiều file cấu hình, gộp từng phần tử
  • Tùy chỉnh server: Cấu hình host, port, SSL, log level qua CLI hoặc biến môi trường

💡 Vì sao đáng chú ý

query-exporter khác biệt từ các exporter khác ở khả năng linh hoạt cao trong việc cấu hình. Người dùng có thể dễ dàng định nghĩa các truy vấn SQL tùy chỉnh để thu thập bất kỳ metrics nào từ cơ sở dữ liệu của mình. Đặc biệt, hỗ trợ chạy cùng một query trên nhiều database và cập nhật nhiều metrics khác nhau trong một lần thực thi, giúp tối ưu hiệu suất.


#Prometheus #Exporter #SQL #Database #Monitoring #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.

RepositoryGo
prometheus/node_exporter

Exporter for machine metrics

14.0k
Dec 1, 2026
RepositoryGo
prometheus/node_exporter

Exporter for machine metrics

14.0k
Nov 30, 2026
RepositoryGo
kubernetes/kube-state-metrics

Add-on agent to generate and expose cluster-level metrics.

6.2k
Dec 1, 2026
RepositoryGo
netdata/netdata

Full-stack observability · Metrics · Logs · Traces · Flows · Topology · Infrastructure · APM · NPM · DBM · RUM · Synthetics · Cloud · AI SRE · OpenTelemetry · SNMP · NetFlow/IPFIX/sFlow · IPMI · Redfish · 2000+ integrations

81.7k
Nov 30, 2026
RepositoryGo
grafana/grafana

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.

78.4k
Nov 30, 2026
RepositoryGo
prometheus/prometheus

The Prometheus monitoring system and time series database.

68.1k
Dec 2, 2026
RepositoryC++
duckdb/duckdb

DuckDB is a high-performance analytical database system

43.5k
Nov 29, 2026
RepositoryRust
influxdata/influxdb

Scalable datastore for metrics, events, and real-time analytics

31.8k
Dec 2, 2026
RepositoryJava
apache/skywalking

APM, Application Performance Monitoring System

25.0k
Nov 27, 2026