heath impl
This commit is contained in:
18
src/health/health.module.ts
Normal file
18
src/health/health.module.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { Module } from '@nestjs/common';
|
||||
import { TerminusModule } from '@nestjs/terminus';
|
||||
import { HttpModule } from '@nestjs/axios';
|
||||
import { HealthController } from './health.controller';
|
||||
import { TypeOrmHealthIndicator } from './indicators/typeorm.health';
|
||||
import { DbPoolStatsIndicator } from './indicators/db-pool-stats.health';
|
||||
import { ConfigModule } from '@nestjs/config';
|
||||
|
||||
@Module({
|
||||
imports: [
|
||||
TerminusModule,
|
||||
HttpModule,
|
||||
ConfigModule,
|
||||
],
|
||||
controllers: [HealthController],
|
||||
providers: [TypeOrmHealthIndicator, DbPoolStatsIndicator],
|
||||
})
|
||||
export class HealthModule {}
|
||||
Reference in New Issue
Block a user