property MetricsPluginOptions.excludePaths

Request paths the HTTP metrics middleware skips entirely — no counter, histogram, or gauge is touched for them.

When supplied this list REPLACES the default ['/health', '/live', '/ready'] set rather than extending it; the plugin's own endpoint is always excluded regardless, so /metrics can never count its own scrapes.

Type

readonly PathPattern[]

Usage

import { type MetricsPluginOptions } from "metrics-plugin/src/index.ts";