Skip to content

[Serve][6/n] Add app/deployment status metrics#59244

Merged
abrarsheikh merged 6 commits intomasterfrom
59218-abrar-state
Dec 18, 2025
Merged

[Serve][6/n] Add app/deployment status metrics#59244
abrarsheikh merged 6 commits intomasterfrom
59218-abrar-state

Conversation

@abrarsheikh
Copy link
Contributor

fixes #59218

@abrarsheikh abrarsheikh added the go add ONLY when ready to merge, run all tests label Dec 7, 2025
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces new metrics for tracking application and deployment statuses in Ray Serve. The changes include adding to_numeric() methods to status enums and instrumenting the state managers to report these metrics as Prometheus gauges. A new test is also added to verify the correctness of these metrics.

My review focuses on the consistency of the new metrics and the correctness of the tests. I've found a bug in the new test where it re-verifies a deployment's status instead of checking the one that's expected to change. I've also suggested re-ordering the numeric values for ApplicationStatus to be more intuitive and consistent with DeploymentStatus.

@abrarsheikh abrarsheikh marked this pull request as ready for review December 17, 2025 01:10
@abrarsheikh abrarsheikh requested a review from a team as a code owner December 17, 2025 01:10
Signed-off-by: abrar <[email protected]>
@abrarsheikh abrarsheikh requested a review from a team as a code owner December 17, 2025 01:14
@ray-gardener ray-gardener bot added serve Ray Serve Related Issue observability Issues related to the Ray Dashboard, Logging, Metrics, Tracing, and/or Profiling labels Dec 17, 2025
Signed-off-by: abrar <[email protected]>
@abrarsheikh abrarsheikh merged commit 673e83b into master Dec 18, 2025
6 checks passed
@abrarsheikh abrarsheikh deleted the 59218-abrar-state branch December 18, 2025 06:14
zzchun pushed a commit to zzchun/ray that referenced this pull request Dec 18, 2025
Yicheng-Lu-llll pushed a commit to Yicheng-Lu-llll/ray that referenced this pull request Dec 22, 2025
peterxcli pushed a commit to peterxcli/ray that referenced this pull request Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go add ONLY when ready to merge, run all tests observability Issues related to the Ray Dashboard, Logging, Metrics, Tracing, and/or Profiling serve Ray Serve Related Issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Serve] add debugging metrics to ray serve

3 participants