Skip to content

Commit

Permalink
remove metrics modules and send logs to the graylog
Browse files Browse the repository at this point in the history
  • Loading branch information
Junjiequan committed Jan 7, 2025
1 parent 7966a06 commit f656e3a
Show file tree
Hide file tree
Showing 15 changed files with 22 additions and 368 deletions.
2 changes: 1 addition & 1 deletion src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import { EventEmitterModule } from "@nestjs/event-emitter";
import { AdminModule } from "./admin/admin.module";
import { HealthModule } from "./health/health.module";
import { LoggerModule } from "./loggers/logger.module";
import { MetricsAndLogsModule } from "./metrics-and-logs/metrics-and-logs.module";
import { MetricsAndLogsModule } from "./metrics/metrics-and-logs.module";

@Module({
imports: [
Expand Down
49 changes: 0 additions & 49 deletions src/metrics-and-logs/access-logs/access-logs.controller.ts

This file was deleted.

22 changes: 0 additions & 22 deletions src/metrics-and-logs/access-logs/access-logs.module.ts

This file was deleted.

23 changes: 0 additions & 23 deletions src/metrics-and-logs/access-logs/access-logs.service.ts

This file was deleted.

This file was deleted.

65 changes: 0 additions & 65 deletions src/metrics-and-logs/access-logs/schemas/access-log.schema.ts

This file was deleted.

Empty file.
49 changes: 0 additions & 49 deletions src/metrics-and-logs/metrics/metrics.controller.ts

This file was deleted.

21 changes: 0 additions & 21 deletions src/metrics-and-logs/metrics/metrics.module.ts

This file was deleted.

24 changes: 0 additions & 24 deletions src/metrics-and-logs/metrics/metrics.service.ts

This file was deleted.

50 changes: 0 additions & 50 deletions src/metrics-and-logs/metrics/schemas/metrics-record.schema.ts

This file was deleted.

29 changes: 0 additions & 29 deletions src/metrics-and-logs/metrics/schemas/metrics.schema.ts

This file was deleted.

13 changes: 0 additions & 13 deletions src/metrics-and-logs/metrics/tasks/metrics-cron.task.ts

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import { Logger, MiddlewareConsumer, Module, NestModule } from "@nestjs/common";
import { MetricsModule } from "./metrics/metrics.module";
import { AccessLogsModule } from "./access-logs/access-logs.module";
import { ConfigModule, ConfigService } from "@nestjs/config";
import { MetricsAndLogsMiddleware } from "./middlewares/metrics-and-logs.middleware";
import { JwtModule } from "@nestjs/jwt";

@Module({
imports: [MetricsModule, AccessLogsModule, ConfigModule, JwtModule],
exports: [MetricsModule, AccessLogsModule],
imports: [ConfigModule, JwtModule],
exports: [],
})
export class MetricsAndLogsModule implements NestModule {
constructor(private readonly configService: ConfigService) {}
Expand Down
Loading

0 comments on commit f656e3a

Please sign in to comment.