llama-stack-mirror/docs/source/building_applications
Charlie Doern 49b729b30a feat: api level request metrics via middleware
add RequestMetricsMiddleware which tracks key metrics related to each request the LLS server will recieve:

1. llama_stack_requests_total: tracks the total amount of requests the server has processed
2. llama_stack_request_duration_seconds: tracks the duration of each request
3. llama_stack_concurrent_requests: tracks concurrently processed requests by the server

The usage of a middleware allows this to be done on the server level without having to add custom handling to each router like the inference router has today for its API specific metrics.

Also, add some unit tests for this functionality

resolves #2597

Signed-off-by: Charlie Doern <cdoern@redhat.com>
2025-08-03 13:14:25 -04:00
..
playground refactor: remove Conda support from Llama Stack (#2969) 2025-08-02 15:52:59 -07:00
agent.md docs: Minor updates to docs to make them a little friendlier to new users (#1871) 2025-04-04 08:10:35 -04:00
agent_execution_loop.md docs: Minor updates to docs to make them a little friendlier to new users (#1871) 2025-04-04 08:10:35 -04:00
evals.md feat(api): simplify client imports (#1687) 2025-03-20 10:15:49 -07:00
index.md docs: Document use cases for Responses and Agents APIs (#2756) 2025-07-24 12:20:04 -04:00
rag.md feat: Enable ingestion of precomputed embeddings (#2317) 2025-05-31 04:03:37 -06:00
rag.png Update docs for RAG and improve CONTRIBUTING.md 2025-01-28 06:09:48 -08:00
responses_vs_agents.md docs: Document use cases for Responses and Agents APIs (#2756) 2025-07-24 12:20:04 -04:00
safety.md Fix precommit check after moving to ruff (#927) 2025-02-02 06:46:45 -08:00
telemetry.md feat: api level request metrics via middleware 2025-08-03 13:14:25 -04:00
tools.md docs(mcp): add a few lines for how to specify Auth headers in MCP tools (#2336) 2025-06-02 14:28:38 -07:00