Home > fastify-metrics > IRouteMetricsConfig
Route metrics configuration
Signature:
export interface IRouteMetricsConfig
Property |
Modifiers |
Type |
Description |
---|---|---|---|
Record<string, string | ((request: FastifyRequest, reply: FastifyReply) => string)> |
(Optional) Custom labels to add to metrics | ||
boolean | { histogram?: boolean; summary?: boolean; } |
(Optional) | ||
boolean |
(Optional) Groups status code labels by first digit 200 becomes 2XX in metrics. | ||
string |
(Optional) Unknown route label. If registeredRoutesOnly routes set to | ||
readonly HTTPMethods[] |
(Optional) A list of HTTP methods that will be excluded from metrics collection | ||
(Optional) Metric configuration overrides | |||
boolean |
(Optional) Collect metrics only for registered routes. If | ||
readonly (string | RegExp)[] |
(Optional) A list of routes that will be excluded from metrics collection. |