RedisMetrics

public struct RedisMetrics

The system funnel for all Metrics interactions from the Redis library.

It is highly recommended to not interact with this directly, and to let the library use it how it sees fit.

There is a nested enum type of RedisMetrics.Label that is available to query, match, etc. the labels used for all of the Metrics types created by the Redis library.

  • An enumeration of all the labels used by the Redis library for various Metrics data points.

    Each is backed by a raw string, and this type is CustomStringConvertible to receive a namespaced description in the form of "RediStack.<rawValue>".

    See more

    Declaration

    Swift

    public enum Label : String, CustomStringConvertible
  • The wrapped Metrics.Gauge maintaining the current number of connections this library has active.

    Declaration

    Swift

    public static var activeConnectionCount: ActiveConnectionGauge
  • The Metrics.Counter that retains the number of connections made since application startup.

    Declaration

    Swift

    public static let totalConnectionCount: Counter
  • The Metrics.Counter that retains the number of commands that successfully returned from Redis since application startup.

    Declaration

    Swift

    public static let commandSuccessCount: Counter
  • The Metrics.Counter that retains the number of commands that failed from errors returned by Redis since application startup.

    Declaration

    Swift

    public static let commandFailureCount: Counter
  • The Metrics.Timer that receives command response times in nanoseconds from when a command is first sent through the NIO.Channel, to when the response is first resolved.

    Declaration

    Swift

    public static let commandRoundTripTime: Timer