Skip to content

Allow disabling metrics collection in SwiftMetrics integration #133

@dankinsoid

Description

@dankinsoid

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions