You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LCORE-1857: Add metrics to track degraded mode startup state
Add Prometheus metrics to monitor when Lightspeed Core Stack starts in
degraded mode (without llama-stack connectivity). During implementation,
discovered that PR #327's lazy initialization pattern prevented model
metrics from being set up correctly, requiring a revert.
When LCORE starts in degraded mode, the @run_once_async
decorator marks setup_model_metrics() as "done" after it returns early.
On restart with llama-stack available, the function never runs again,
leaving model metrics uninitialized. Moving setup back to startup fixes
this while degraded mode already provides the startup resilience that
PR #327 originally addressed.
Signed-off-by: Anik Bhattacharjee <anbhatta@redhat.com>
Copy file name to clipboardExpand all lines: docs/openapi.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -10400,7 +10400,7 @@
10400
10400
"metrics"
10401
10401
],
10402
10402
"summary": "Metrics Endpoint Handler",
10403
-
"description": "Handle request to the /metrics endpoint.\n\nProcess GET requests to the /metrics endpoint, returning the\nlatest Prometheus metrics in form of a plain text.\n\nInitializes model metrics on the first request if not already\nset up, then responds with the current metrics snapshot in\nPrometheus format.\n\n### Parameters:\n- request: The incoming HTTP request (used by middleware).\n- auth: Authentication tuple from the auth dependency (used by middleware).\n\n### Returns:\n- PlainTextResponse: Response body containing the Prometheus metrics text\n and the Prometheus content type.",
10403
+
"description": "Handle request to the /metrics endpoint.\n\nProcess GET requests to the /metrics endpoint, returning the\nlatest Prometheus metrics in plain text Prometheus format.\n\n### Parameters:\n- request: The incoming HTTP request (used by middleware).\n- auth: Authentication tuple from the auth dependency (used by middleware).\n\n### Returns:\n- PlainTextResponse: Response body containing the Prometheus metrics text\n and the Prometheus content type.",
0 commit comments