mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 21:41:09 +02:00
- Add Prometheus scraping for mana-search (port 3020, already has metrics) - Add Prometheus scraping for mana-media (port 3015, MetricsModule added) - Add Prometheus scraping for Matrix Synapse (port 9002, already enabled) - Add MetricsModule to mana-media with media_ prefix - Update Dockerfile for mana-media to include shared-nestjs-metrics - Replace hardcoded ServiceDown alert list with dynamic regex (.*-backend|mana-core-auth|mana-search|mana-media|synapse) - Replace hardcoded backends.json query with dynamic regex - Add Search, Media, Synapse to master-overview and system-overview dashboards Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
38 lines
1.1 KiB
TypeScript
38 lines
1.1 KiB
TypeScript
import { Module } from '@nestjs/common';
|
|
import { ConfigModule } from '@nestjs/config';
|
|
import { BullModule } from '@nestjs/bullmq';
|
|
import { MetricsModule } from '@manacore/shared-nestjs-metrics';
|
|
import { DatabaseModule } from './db/database.module';
|
|
import { UploadModule } from './modules/upload/upload.module';
|
|
import { StorageModule } from './modules/storage/storage.module';
|
|
import { ProcessModule } from './modules/process/process.module';
|
|
import { DeliveryModule } from './modules/delivery/delivery.module';
|
|
import { MatrixModule } from './modules/matrix/matrix.module';
|
|
import { HealthController } from './health.controller';
|
|
|
|
@Module({
|
|
imports: [
|
|
ConfigModule.forRoot({
|
|
isGlobal: true,
|
|
}),
|
|
MetricsModule.register({
|
|
prefix: 'media_',
|
|
excludePaths: ['/health'],
|
|
}),
|
|
BullModule.forRoot({
|
|
connection: {
|
|
host: process.env.REDIS_HOST || 'localhost',
|
|
port: parseInt(process.env.REDIS_PORT || '6379'),
|
|
password: process.env.REDIS_PASSWORD || undefined,
|
|
},
|
|
}),
|
|
DatabaseModule,
|
|
StorageModule,
|
|
UploadModule,
|
|
ProcessModule,
|
|
DeliveryModule,
|
|
MatrixModule,
|
|
],
|
|
controllers: [HealthController],
|
|
})
|
|
export class AppModule {}
|