mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1635] [CLOSED] Add a prometheus metrics endpoint with llama.cpp's names #3572
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3572
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/1635
Author: @zeevo
Created: 10/9/2026
Status: ❌ Closed
Base:
main← Head:prometheus-llamacpp📝 Commits (1)
c3a94c8add a prometheus metrics endpoint📊 Changes
3 files changed (+75 additions, -0 deletions)
View changed files
📝
docs/DETAILS.md(+1 -0)📝
serve/server.py(+38 -0)📝
serve/test_server.py(+36 -0)📄 Description
Replaces #877, which GitHub closed when
mainwas force-pushed. Same commit, cherry-picked onto the newmain.Adds
GET /metrics/prometheus: request totals and what is running in Prometheus' text format, under llama-server's metric names (llamacpp:prompt_tokens_seconds,llamacpp:predicted_tokens_seconds,llamacpp:requests_processing, ...), plus Strata's drafts and requests asstrata:*. Tools that read only llama.cpp's/metrics(llm-visuals, as described in #877) work unchanged.It sits next to #793's vLLM-named output on
GET /metricsand does not change it or the Monitor's JSON.Tests:
python -m unittest serve.test_server serve.test_prometheus(278 OK).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.