Documentation
    Preparing search index...
    • Express middleware that returns the metrics collected by the registry.

      Parameters

      • registry: Registry

        The metrics registry.

      • shouldCollectDefaultMetrics: boolean = true

        Indicates whether to collect default metrics. Default is true.

      • OptionaldefaultMetricsLabels: Record<string, string>

        The labels to be added to default metrics.

      Returns RequestHandler

      The Express request handler function.