Home > fastify-metrics > IMetricsPluginOptions
Metrics plugin config
Signature:
export interface IMetricsPluginOptions |
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
boolean |
Clears the prom-client global registry before adding metrics. Default to | ||
|
Default prom-client metrics config. Collect prometheus recommended and node.js specific metrics like event loop lag. | |||
|
string | null | RouteOptions |
Endpoint to expose metrics in prometheus format. | ||
|
string |
Plugin name that will be registered in fastify instance. | ||
|
typeof client | null |
PromClient instance to override default internal promClient | ||
|
Per route metrics config. Collect response time metric on requests |