Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Allow disabling metrics collection in SwiftMetrics integration

Đang mở
#133 5 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
swift
Lĩnh vực
backend

Hướng nghiên cứu

Start by reading the SwiftMetrics integration and the configuration pattern used for RedisStack options; the issue does not name specific files or tests. Identify where metrics are emitted and how users configure the client, then check whether a setting can disable collection throughout the integration. Done means users can turn off RedisStack metrics, with tests confirming that disabled metrics are not emitted.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Currently, RedisStack automatically emits a large number of metrics using SwiftMetrics, and there is no way to turn this off.
This is problematic for production environments where external metrics backends (like InfluxDB, Prometheus, or StatsD) are used with limited quotas or billing per datapoint.

For example, after enabling RedisStack in an application that reports to InfluxDB, the metric volume became so high that it consumed the entire monthly limit overnight.

Here’s a screenshot of InfluxDB usage - the big spike at the end comes from RediStack:
Image

This happens even when metrics are not essential for monitoring or debugging.

It would be very helpful to have a way to disable metrics entirely, similar to what Vapor allows with:

app.http.server.configuration.reportMetrics = false
Ngôn ngữ chính
Swift
Star
182
Fork
29
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của swift-server/RediStack

Tất cả issue của swift-server/RediStack

Issue tương tự

Thêm issue về Swift

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.