Skip to content

[Serve][8/n] add event loop metrics#59535

Merged
abrarsheikh merged 9 commits into
masterfrom
59218-abrar-loop
Dec 18, 2025
Merged

[Serve][8/n] add event loop metrics#59535
abrarsheikh merged 9 commits into
masterfrom
59218-abrar-loop

Conversation

@abrarsheikh

@abrarsheikh abrarsheikh commented Dec 18, 2025

Copy link
Copy Markdown
Contributor
Signed-off-by: abrar <abrar@anyscale.com>

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

Copy link
Copy Markdown
Contributor

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 valuable event loop monitoring metrics to Ray Serve, which will be very helpful for debugging performance issues and blocked event loops. The implementation is well-structured, with a new event_loop_monitoring module cleanly integrated into the proxy, replica, and router components. The documentation is clear and comprehensive, and the tests cover the new functionality well. I have a couple of suggestions to improve the metric descriptions for better code clarity and to make the tests more robust.

Comment thread python/ray/serve/_private/event_loop_monitoring.py
Comment thread python/ray/serve/tests/test_metrics.py
Comment thread python/ray/serve/tests/test_metrics.py
Signed-off-by: abrar <abrar@anyscale.com>
Signed-off-by: abrar <abrar@anyscale.com>
Signed-off-by: abrar <abrar@anyscale.com>
@abrarsheikh abrarsheikh added the go add ONLY when ready to merge, run all tests label Dec 18, 2025
Signed-off-by: abrar <abrar@anyscale.com>
Signed-off-by: abrar <abrar@anyscale.com>
@abrarsheikh abrarsheikh marked this pull request as ready for review December 18, 2025 16:38
@abrarsheikh abrarsheikh requested review from a team as code owners December 18, 2025 16:38

@akyang-anyscale akyang-anyscale left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this is 🔥

Comment thread python/ray/serve/_private/event_loop_monitoring.py Outdated
Comment thread doc/source/serve/monitoring.md Outdated
Signed-off-by: abrar <abrar@anyscale.com>
Signed-off-by: abrar <abrar@anyscale.com>
@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 18, 2025
Signed-off-by: abrar <abrar@anyscale.com>
@abrarsheikh abrarsheikh merged commit 5334493 into master Dec 18, 2025
6 checks passed
@abrarsheikh abrarsheikh deleted the 59218-abrar-loop branch December 18, 2025 21:32
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

2 participants