Hacktoberfest 2026 : les issues que les mainteneurs ont marquées pour octobre, ouvertes et accessibles aux débutants. Parcourir les issues Hacktoberfest

Allow disabling metrics collection in SwiftMetrics integration

Ouverte
#133 5 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
45/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
À l'abandon
Stack technique
swift
Domaine
backend

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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
Langage dominant
Swift
Étoiles
182
Forks
29
Métriques de merge des PR
Aucune PR mergée en 30 j

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de swift-server/RediStack

Toutes les issues de swift-server/RediStack

Issues similaires

Plus d'issues Swift

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.