feat: healthcheck for external services (#4048)

* chore: installed terminus package and scaffolded the health module

* feat: added healthcheck for database with prisma

* chore: renamed label from prisma to database in health check route

* chore: reverted target of hopp-old-backend service to prod
This commit is contained in:
Balu Babu
2024-05-07 20:05:17 +05:30
committed by GitHub
parent 391e5a20f5
commit 5c4b651aee
5 changed files with 142 additions and 0 deletions

View File

@@ -26,6 +26,7 @@ import { loadInfraConfiguration } from './infra-config/helper';
import { MailerModule } from './mailer/mailer.module';
import { PosthogModule } from './posthog/posthog.module';
import { ScheduleModule } from '@nestjs/schedule';
import { HealthModule } from './health/health.module';
@Module({
imports: [
@@ -100,6 +101,7 @@ import { ScheduleModule } from '@nestjs/schedule';
InfraConfigModule,
PosthogModule,
ScheduleModule.forRoot(),
HealthModule,
],
providers: [GQLComplexityPlugin],
controllers: [AppController],