MetricsExpressMiddleware middleware

Methods

Methods

  • Return a metrics middleware instance

    Parameters

    • Optionalprefix: string

      Metrics prefix

    Returns RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>

  • Return a metrics middleware instance

    Parameters

    • Optionalregistry: Registry<"text/plain; version=0.0.4; charset=utf-8">

      Metrics registry interface

    • Optionalprefix: string

      Metrics prefix

    Returns RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>