mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-28 07:37:43 +02:00
feat(observability): add metrics and monitoring for all 15 backends
- Add MetricsModule to 8 backends missing it (photos, zitare, mukke, planta, picture, storage, presi, nutriphi) - Enable Prometheus scraping for all 15 backends in prometheus.yml (was only 6, with 3 commented out and 6 missing entirely) - Update ServiceDown alert rule to cover all 15 backends - Update Grafana dashboards (backends, master-overview, system-overview) with all backend services in health panels - Fix imprecise regex in application-details dashboard Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
073c216652
commit
6fa6509fa5
23 changed files with 690 additions and 472 deletions
|
|
@ -24,6 +24,7 @@
|
|||
"@manacore/shared-error-tracking": "workspace:*",
|
||||
"@manacore/shared-nestjs-auth": "workspace:*",
|
||||
"@manacore/shared-nestjs-health": "workspace:*",
|
||||
"@manacore/shared-nestjs-metrics": "workspace:*",
|
||||
"@manacore/shared-storage": "workspace:*",
|
||||
"@nestjs/common": "^10.4.15",
|
||||
"@nestjs/config": "^3.3.0",
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ import { ConfigModule } from '@nestjs/config';
|
|||
import { ThrottlerModule } from '@nestjs/throttler';
|
||||
import { DatabaseModule } from './db/database.module';
|
||||
import { HealthModule } from '@manacore/shared-nestjs-health';
|
||||
import { MetricsModule } from '@manacore/shared-nestjs-metrics';
|
||||
import { FileModule } from './file/file.module';
|
||||
import { FolderModule } from './folder/folder.module';
|
||||
import { ShareModule } from './share/share.module';
|
||||
|
|
@ -25,6 +26,10 @@ import { AdminModule } from './admin/admin.module';
|
|||
]),
|
||||
DatabaseModule,
|
||||
HealthModule.forRoot({ serviceName: 'storage-backend', route: 'api/v1/health' }),
|
||||
MetricsModule.register({
|
||||
prefix: 'storage_',
|
||||
excludePaths: ['/health'],
|
||||
}),
|
||||
StorageModule,
|
||||
FileModule,
|
||||
FolderModule,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue