MCPcopy Index your code
hub / github.com/avoidwork/tenso / PrometheusMiddlewareConfig

Interface PrometheusMiddlewareConfig

types/middleware.d.ts:6–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4 * Prometheus metrics configuration for middleware
5 */
6export interface PrometheusMiddlewareConfig {
7 /** Include HTTP method in metrics */
8 includeMethod?: boolean;
9 /** Include request path in metrics */
10 includePath?: boolean;
11 /** Include status code in metrics */
12 includeStatusCode?: boolean;
13 /** Include default metrics */
14 includeUp?: boolean;
15 /** Histogram buckets for request duration */
16 buckets?: number[];
17 /** Custom labels to add to metrics */
18 customLabels?: Record<string, string>;
19}
20
21/**
22 * Prometheus middleware function with register property

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected