No pixa-specific Prometheus metrics, and metrics are not collected at all unless credentials are configured #85
Reference in New Issue
Block a user
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?
Verified against
mainat61f42e6. Covers the "Prometheus performance metrics" item inTODO.md.1. There are no pixa-specific metrics. What exists is generic HTTP metrics from
go-http-metrics(internal/middleware/middleware.go:124-132): request counts, durations, status codes. Nothing exposes what an operator actually needs to run this service:README.md:128lists "Metrics: Prometheus" under Architecture, which oversells what is there.2. Metrics are not collected unless
metrics.usernameis set.internal/server/routes.go:24-26,63-68installs the recorder middleware only inside the same conditional that mounts the authenticated/metricsendpoint. So without credentials, metrics are not merely unexposed — they are never recorded. That may well be intentional (no collection cost when nobody is scraping), but the coupling is invisible and surprising: an operator who mounts/metricsbehind their own reverse-proxy auth, without setting pixa's credentials, gets an endpoint that reports nothing.Uncertain: whether item 2 is deliberate. Confirm intent before changing it — if deliberate, document it rather than "fixing" it.
Definition of done
pixa_prefix, base units,_totalon counters) and are documented in the README.README.mdandconfig.example.yml. Say which and why in the PR.hostSemsmap.make checkgreen.Coordination
Do after #55 merges — the eviction and cache-size metrics only exist once that lands, and it is the source of the numbers worth exporting.