mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-21 06:46:42 +02:00
- Add metrics module to calendar, chat, clock, contacts backends - Add metrics module to mana-core-auth service - Expose /metrics endpoint for Prometheus scraping - Track HTTP requests, response times, and custom business metrics Co-Authored-By: Claude <noreply@anthropic.com>
13 lines
397 B
TypeScript
13 lines
397 B
TypeScript
import { Controller, Get, Header } from '@nestjs/common';
|
|
import { MetricsService } from './metrics.service';
|
|
|
|
@Controller()
|
|
export class MetricsController {
|
|
constructor(private readonly metricsService: MetricsService) {}
|
|
|
|
@Get('metrics')
|
|
@Header('Content-Type', 'text/plain; version=0.0.4; charset=utf-8')
|
|
async getMetrics(): Promise<string> {
|
|
return this.metricsService.getMetrics();
|
|
}
|
|
}
|