Start fixing forecast service 16
This commit is contained in:
@@ -46,6 +46,7 @@ async def lifespan(app: FastAPI):
|
||||
# Register custom metrics
|
||||
metrics_collector.register_counter("forecasts_generated_total", "Total forecasts generated")
|
||||
metrics_collector.register_counter("predictions_served_total", "Total predictions served")
|
||||
metrics_collector.register_counter("prediction_errors_total", "Total prediction errors")
|
||||
metrics_collector.register_histogram("forecast_processing_time_seconds", "Time to process forecast request")
|
||||
metrics_collector.register_gauge("active_models_count", "Number of active models")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user