inference/research
verifiedhigh · 0.92updated 2026-10-04

Ollama server/routes.go - the complete route table, with no /metrics handler

repo

Fields

id
sources/w3m-ollama-no-metrics-route-table
Publisher
ollama/ollama
Kind
repo
Accessed
2026-10-04
notes
server/routes.go on main, read 2026-10-04 (3277 lines). The three 'metrics' matches in the file are all api.Metrics{...} struct literals on the /api/show, /api/ps and /api/tags response bodies - a Go field named Metrics, not a Prometheus exposition route. There is no /metrics GET/HEAD handler registered anywhere in the Serve function. This is the positive-evidence form of the negative: the route table is exhaustive and was read, rather than the absence being inferred from a failing keyword search. /api/ps remains the only state endpoint, carrying name, model, size, size_vram, context_length, expires_at.

Notes

server/routes.go on main, read 2026-10-04 (3277 lines). The three 'metrics' matches in the file are all api.Metrics{...} struct literals on the /api/show, /api/ps and /api/tags response bodies - a Go field named Metrics, not a Prometheus exposition route. There is no /metrics GET/HEAD handler registered anywhere in the Serve function. This is the positive-evidence form of the negative: the route table is exhaustive and was read, rather than the absence being inferred from a failing keyword search. /api/ps remains the only state endpoint, carrying name, model, size, size_vram, context_length, expires_at.

Cross-references

This record references no other records.