[GH-ISSUE #4496] [Other] Prometheus export and dashboard on a layer split: stage labels, per-card PCIe, hit counters #2019

Closed
opened 2026-11-04 01:56:00 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @coryjett on GitHub (Oct 28, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4496

Area

Other

What do you want to do?

Make the Prometheus export and the Grafana dashboard (docs/monitoring/) usable on a layer split.

Today every per-card metric carries only gpu="<index>" (serve/prometheus.py ~148-157): no card name and no stage, so a panel cannot say which card holds layers 0-24. PCIe rx/tx is summed over the cards in the JSON hardware block (serve/telemetry.py ~611-613) and left out of the per-card list, so it is never exported at all; the power limit is not exported. The expert hit rate is one gauge for the last request (strata:last_hit_rate), which a 15 s scrape mostly misses, and it covers both stages together. /metrics/prometheus (the llama.cpp-named endpoint) has no GPU metrics at all. The dashboard has no panel for gpu_temp_celsius, gpu_power_watts, cpu, last_decode_tok_s or engine_max_context even though they are exported.

Suggested: strata:stage_info{stage,gpu,name,layer_start,layer_end} from topology.stages; counters strata:expert_hits_total / expert_lookups_total and a pcie_share gauge instead of the last-request gauge; per-card PCIe rx/tx and power limit; and a "Layer split" dashboard row. Happy to send the prometheus.py part.

What do you do today instead?

Read the engine log and the JSON /metrics; a separate exporter for wall power.

Hardware: 2x RTX 3090 24 GB (PCIe 3.0 x16, one per socket), 2x Xeon E5-2620 v3, 256 GB, Ubuntu 26.10. Version: 0.2.7 (engine 0.1.52, Control 0.1.52); code checked on main 46c152a1. Model: Flash-Next IQ3_S, layer split 25 with --trim-stage-weights, conversation cache 40 GiB / 16 slots; the full profile is in #4468.

Originally created by @coryjett on GitHub (Oct 28, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4496 ### Area Other ### What do you want to do? Make the Prometheus export and the Grafana dashboard (docs/monitoring/) usable on a layer split. Today every per-card metric carries only `gpu="<index>"` (`serve/prometheus.py` ~148-157): no card name and no stage, so a panel cannot say which card holds layers 0-24. PCIe rx/tx is summed over the cards in the JSON `hardware` block (`serve/telemetry.py` ~611-613) and left out of the per-card list, so it is never exported at all; the power limit is not exported. The expert hit rate is one gauge for the last request (`strata:last_hit_rate`), which a 15 s scrape mostly misses, and it covers both stages together. `/metrics/prometheus` (the llama.cpp-named endpoint) has no GPU metrics at all. The dashboard has no panel for `gpu_temp_celsius`, `gpu_power_watts`, `cpu`, `last_decode_tok_s` or `engine_max_context` even though they are exported. Suggested: `strata:stage_info{stage,gpu,name,layer_start,layer_end}` from `topology.stages`; counters `strata:expert_hits_total` / `expert_lookups_total` and a `pcie_share` gauge instead of the last-request gauge; per-card PCIe rx/tx and power limit; and a "Layer split" dashboard row. Happy to send the prometheus.py part. ### What do you do today instead? Read the engine log and the JSON `/metrics`; a separate exporter for wall power. Hardware: 2x RTX 3090 24 GB (PCIe 3.0 x16, one per socket), 2x Xeon E5-2620 v3, 256 GB, Ubuntu 26.10. Version: 0.2.7 (engine 0.1.52, Control 0.1.52); code checked on `main` 46c152a1. Model: Flash-Next IQ3_S, layer split 25 with --trim-stage-weights, conversation cache 40 GiB / 16 slots; the full profile is in #4468.
Author
Owner

@Niko1221 commented on GitHub (Nov 5, 2026):

Thanks for taking the time to report this.

Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected.

To reopen it takes about two minutes:

  1. Re-test on 0.2.11. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6660560508 --> @Niko1221 commented on GitHub (Nov 5, 2026): Thanks for taking the time to report this. Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected. To reopen it takes about two minutes: 1. Re-test on 0.2.11. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#2019
No description provided.