Open hitmands opened 3 years ago
I couldn't find a way of hiding the prom endpoint from our public swagger output.
PromModule.forRoot({ metricPath: '/heartbeat/metrics', });
Is there a way to pass the ApiExcludeEndpoint decorator to Prometheus?
ApiExcludeEndpoint
import { ApiExcludeEndpoint } from '@nestjs/swagger'; @Controlle('hello-world') class HelloWorld { @ApiExcludeEndpoint() @Get('/hide-from-swagger-json') privateEndpoint() { return { hidden: true }; } }
You might be able to do that with Reflect.defineMetadata(metakey, metadata, descriptor.value);?
Reflect.defineMetadata(metakey, metadata, descriptor.value);
I couldn't find a way of hiding the prom endpoint from our public swagger output.
Is there a way to pass the
ApiExcludeEndpoint
decorator to Prometheus?