[Home](./index.md) > [fastify-metrics](./fastify-metrics.md) > [IRouteMetricsConfig](./fastify-metrics.iroutemetricsconfig.md) ## IRouteMetricsConfig interface Route metrics configuration **Signature:** ```typescript export interface IRouteMetricsConfig ``` ## Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| [customLabels?](./fastify-metrics.iroutemetricsconfig.customlabels.md) | Record<string, string \| ((request: FastifyRequest, reply: FastifyReply) => string)> | _(Optional)_ Custom labels to add to metrics | |
| [enabled?](./fastify-metrics.iroutemetricsconfig.enabled.md) | boolean \| { histogram?: boolean; summary?: boolean; } | _(Optional)_ Enables or disables route metrics collection. Can be a boolean to enable/disable both histogram and summary, or an object to control each independently. | |
| [groupStatusCodes?](./fastify-metrics.iroutemetricsconfig.groupstatuscodes.md) | boolean | _(Optional)_ Groups status code labels by first digit 200 becomes 2XX in metrics. | |
| [invalidRouteGroup?](./fastify-metrics.iroutemetricsconfig.invalidroutegroup.md) | string | _(Optional)_ Unknown route label. If registeredRoutesOnly routes set to `false` unknown routes will have following url. | |
| [methodBlacklist?](./fastify-metrics.iroutemetricsconfig.methodblacklist.md) | readonly HTTPMethods\[\] | _(Optional)_ A list of HTTP methods that will be excluded from metrics collection | |
| [overrides?](./fastify-metrics.iroutemetricsconfig.overrides.md) | [IRouteMetricsOverrides](./fastify-metrics.iroutemetricsoverrides.md) | _(Optional)_ Metric configuration overrides | |
| [registeredRoutesOnly?](./fastify-metrics.iroutemetricsconfig.registeredroutesonly.md) | boolean | _(Optional)_ Collect metrics only for registered routes. If `false`, then metrics for unknown routes `/unknown-unregistered-route` will be collected as well. | |
| [routeBlacklist?](./fastify-metrics.iroutemetricsconfig.routeblacklist.md) | readonly (string \| RegExp)\[\] | _(Optional)_ A list of routes that will be excluded from metrics collection. |