managarten/services/mana-core-auth/src/metrics/metrics.controller.ts
Till-JS 1c5a1b8442 feat(metrics): add Prometheus metrics to all backends
- 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>
2026-01-26 09:35:01 +01:00

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();
}
}