Class MetricsController

java.lang.Object
com.nmontytskyi.monitoring.server.controller.MetricsController

@Validated @RestController @RequestMapping("/api/metrics") public class MetricsController extends Object
REST controller exposing the metric ingestion API for monitored microservices.

Accepts metric snapshots pushed by the MetricsBuffer of each registered service. Supports both single-record and batch endpoints to minimise HTTP overhead. Every accepted snapshot is forwarded to MetricsPersistenceService for persistence, anomaly detection, and alert evaluation.

Author:
Nazar Montytskyi
See Also:
  • Constructor Details

    • MetricsController

      public MetricsController()
  • Method Details