Instruments routes with HTTP metrics and appends a Prometheus endpoint.
Instruments routes with HTTP metrics and appends a Prometheus endpoint.
This is the recommended one-call API. It applies Middleware.metrics() to instrument your routes and appends a GET /metrics route that serves Prometheus-formatted metrics.
Value parameters
concurrentRequestsName
name of the gauge tracking concurrent requests
extraLabels
additional labels to attach to all metrics
metricsPath
the path at which to expose Prometheus metrics (default: "metrics")