Middleware that creates an HTTP proxy with Prometheus metrics (counters and histograms) for proxied requests. Tracks method, URI, and status code per request.
consumer.apply(ProxyPrometheusMiddleware.create({ target: 'http://upstream' })); Copy
consumer.apply(ProxyPrometheusMiddleware.create({ target: 'http://upstream' }));
Private
Static
Optional
Description
Middleware that creates an HTTP proxy with Prometheus metrics (counters and histograms) for proxied requests. Tracks method, URI, and status code per request.
Example