9001 / copyparty

Portable file server with accelerated resumable uploads, dedup, WebDAV, FTP, TFTP, zeroconf, media indexer, thumbnails++ all in one file, no deps
MIT License
571 stars 34 forks source link

statistics #49

Closed 9001 closed 1 year ago

9001 commented 1 year ago

a suggestion came up on discord to add statistics; making an issue for ideas / brainstorming

help-wanted: mostly for ideas (see labels below), but just in case someone feels adventurous enough to tackle the implementation as well, I was roughly planning to do it based on u2idx, doing direct sqlite3 queries

design

metrics

List of metrics that are easy to add,

unlikely metrics

List of metrics that are unlikely to be added

9001 commented 1 year ago

there is a stats/metrics endpoint at /.cpr/s/metrics which implements openmetrics 1.0.0

the following metrics were added:

most of the metrics are listed per-volume and also as a total

the moving-window metrics mentioned previously (number of recent uploads and such) were not added because they don't appear to fit well in openmetrics