No metrics for what the daemon holds between requests, such as database connections in use #194

Closed
opened 2026-10-11 07:54:04 -07:00 by rays · 2 comments
Owner

Logs and traces show requests, scans and downloads, but nothing shows the daemon's own state over time: database connections in use against the pool's size, commands waiting for the worker, live-update listeners, torrent slots, the runtime's tasks, memory and open files. A pool run dry, as the 5 s POST /api/fetch of 2026-10-06 looked like, can only be guessed at. Add a Prometheus /metrics, scrape it, and graph it on the iPX dashboard.

Logs and traces show requests, scans and downloads, but nothing shows the daemon's own state over time: database connections in use against the pool's size, commands waiting for the worker, live-update listeners, torrent slots, the runtime's tasks, memory and open files. A pool run dry, as the 5 s POST /api/fetch of 2026-10-06 looked like, can only be guessed at. Add a Prometheus /metrics, scrape it, and graph it on the iPX dashboard.
rays added the enhancement label 2026-10-11 07:54:04 -07:00
Author
Owner

Done and deployed: c2... see git log. /metrics is served by [web] metrics_bind on a thread, runtime and port of its own (192.168.1.130:9187, LAN only, no sign-in), from memory alone; Prometheus scrapes it as job ipx in 1.9 ms (149 ms when it shared the web server and queried the database). The iPX dashboard has a Daemon row; the prod-check skill a prom command and a sixth check. The API token made for the first version is revoked.

Done and deployed: c2... see git log. /metrics is served by [web] metrics_bind on a thread, runtime and port of its own (192.168.1.130:9187, LAN only, no sign-in), from memory alone; Prometheus scrapes it as job ipx in 1.9 ms (149 ms when it shared the web server and queried the database). The iPX dashboard has a Daemon row; the prod-check skill a prom command and a sixth check. The API token made for the first version is revoked.
rays closed this issue 2026-10-11 08:07:00 -07:00
Author
Owner

Commits, for the record: 9fc1e7e (first version on the web port), 973eeb6 (own thread, runtime and port, from memory), a985cfa (prod-check skill).

Commits, for the record: 9fc1e7e (first version on the web port), 973eeb6 (own thread, runtime and port, from memory), a985cfa (prod-check skill).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: rays/ipx#194