deploy/grafana: a dashboard for /metrics, on Prometheus or VictoriaMetrics

Throughput, prompt tokens by source, speculative decoding by draft
position, scheduler steps, latency, prefix cache and HTTP, from both
metric families. Plain PromQL, so the same JSON runs on Prometheus and on
VictoriaMetrics. Window ratios are counter ratios with the definitions of
the since-start gauges; conditional acceptance at position j in a window
is reached(j+1) / reached(j).

GUIDE: draft_position_acceptance_ratio is cumulative since start
(draft.h), and the dashboard is named under §6.3.
This commit is contained in:
keptn42 authored and StillDeadcode committed 2026-10-05 19:30:59 +02:00
1 parent ee65352d7d
commit 41c0d25233
3 files changed
+2624 -1

No files matched your search

+3 -1
View File
@@ -1399,7 +1399,7 @@ under the request's own spelling of each. `server.default_max_tokens` is `null`
| `decode_tokens_total`, `prefill_tokens_total` | |
| `decode_tokens_per_second`, `prefill_tokens_per_second` | |
| `draft_tokens_total`, `draft_accepted_total`, `draft_acceptance_ratio` | |
| `draft_position_reached_total`, `draft_position_acceptance_ratio` | acceptance by position in the window |
| `draft_position_reached_total`, `draft_position_acceptance_ratio` | acceptance by position, since start |
| `decode_rows_unspeculated_total` | rows that never drafted at all |
| `attn_cached_tokens_total`, `linear_cached_tokens_total` | prefix reuse, both halves |
| `linear_checkpoints_written_total`, `linear_prefix_cache_hit_rate` | |
@@ -1416,6 +1416,8 @@ Two traps worth naming:
- **Step time is not wall-clock over steps.** Use `engine_step_seconds_decode_total /
engine_steps_decode_total`, which charges only decode. Wall-clock charges idle and prefill to it.
`deploy/grafana/radiance.json` charts both families over time, on Prometheus or VictoriaMetrics.
### 6.4 The live terminal view
```sh