Grafana dashboard for Triton on Ray - #217
Merged
Merged
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
kondratyevd
force-pushed
the
sonic-ray-dashboard
branch
from
September 7, 2026 12:38
eb17f30 to
23bc289
Compare
The SuperSONIC dashboard filters app=~"supersonic" in several panels, so it cannot show this release; rather than loosen a production dashboard, this is a separate one (uid sonic-ray) provisioned into the same Grafana. Two halves. Ray Serve: replicas, request rate by RPC, latency percentiles, the autoscaling signal (in-flight per replica) against what it produced (replicas, queued), errors. Triton: inferences by model and the queue/input/infer/output breakdown, both the SuperSONIC queries scoped to this release, plus pending requests and GPU. One panel subtracts Triton's own mean request duration from Serve's mean latency: the cost of the Ray hop, which is the thing worth measuring here. Every series name comes from a source rather than memory — Ray 2.52's metric definitions, the proxy's declared tag keys, the af-pod-monitor relabel rules — and the tests hold that, along with release scoping, guarded divisions, matching units on the overhead panel and a grid with no overlaps. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
kondratyevd
force-pushed
the
sonic-ray-dashboard
branch
from
September 7, 2026 12:48
23bc289 to
72ecb1b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
A Grafana dashboard for the
sonic-rayrelease, provisioned into the AF Grafana next to the existing ones: Triton on Ray (uidsonic-ray).Follow-up to #212 and #218 (both merged): one dashboard, one line of Flux wiring, and its tests.
Rebuilt on
mainafter the public/private Grafana split (#190). It goes to the public instance, where the SuperSONIC dashboard already lives — that is the one with anonymous viewer access, which is what you want while watching a benchmark. Moving it to the private instance is a one-line change if you would rather.The existing SuperSONIC dashboard cannot show this release: several of its panels filter
app=~"supersonic", and this release's Services are labelledapp=sonic-ray. Rather than loosen a production dashboard, this is a separate one, scoped by the samerelease/namespacevariables.Panels
Ray Serve — the request path
methodis a declared tag key), so metadata chatter is visible separately fromModelInferTriton — the inference: inferences/s by model, the queue/input/infer/output latency breakdown (the SuperSONIC dashboard's queries, scoped to this release), pending requests per server, GPU utilization and memory.
How the queries were built
Every series name was taken from a source, not from memory:
ray_serve_deployment_replica_healthy,..._processing_latency_ms,..._replica_processing_queries,..._queued_queries,..._error_counter_total, andray_serve_num_grpc_requests_total/..._error_requests_total, which the proxy builds asserve_num_{protocol}_requests).methodis a declared tag key of that proxy counter;pod,release,namespace,appandcomponentare attached by the AF Prometheus itself (theaf-pod-monitorrelabel rules). Panels group only by those, never by Ray's internaldeployment/replicatags, which this Prometheus does not key on.nv_*series and the datasource uidprometheusmatch what the SuperSONIC dashboard already plots here.Since the split, the tests also pin which instance provisions it: present in the public ConfigMap, absent from the private one, and each instance mounting the map it is named for.
tests/manifests/test_sonic_ray_dashboard.pyholds that, plus: an allowlist of series with a note on where each was verified, every target scoped to both variables, grouping only by labels that exist,$__rate_intervalwindows, every division guarded so an idle release cannot render ±∞ (the failure the pixi panels already learned), the overhead panel converting Triton's microseconds to Serve's milliseconds and not clipping at zero, and no two panels overlapping on the grid. Two of those tests failed on the first draft and caught real bugs.Verified
pytest tests981 passing,validate-manifests.shgreen, ruff and prettier clean.metrics(8080), whichsonic-ray-metricsselects, but no pod has run yet to prove it.🤖 Generated with Claude Code