You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to remove the /api/metrics from the autogenerated swagger spec.
constMyPromModule=PromModule.forRoot({defaultLabels: {app: 'my-api'},withDefaultsMetrics: true,withDefaultController: false,// set to false so custom controller is useduseHttpCounterMiddleware: true})MyPromModule.controllers=[PromController.forRoot('api/metrics')]
and then PromController is a copy paste from source(but with @ApiExcludeEndpoint)
@digikare/nestjs-prom
version:0.2.5
I am trying to remove the
/api/metrics
from the autogenerated swagger spec.and then PromController is a copy paste from source(but with
@ApiExcludeEndpoint
)When I hit
/api/metrics
,client.register.metrics();
always returns empty string.The text was updated successfully, but these errors were encountered: