psitransfer icon indicating copy to clipboard operation
psitransfer copied to clipboard

Stats and summary up/down size

Open Darkomen78 opened this issue 9 months ago • 5 comments

Is there a "simple" way to get a monthly (and yearly) summary "log" for all uploads and downloads ?

Darkomen78 avatar May 13 '24 16:05 Darkomen78

With the current code, there's no way.

For downloads though, I monitor via Cloudflare stats.

droplinxuser avatar May 13 '24 18:05 droplinxuser

You need to implement it by your own. You could use the plugin api like https://github.com/psi-4ward/psitransfer/tree/master/plugins

psi-4ward avatar May 13 '24 18:05 psi-4ward

Thanks, I think I don't have dev skills (and time) to implement that 😅

Darkomen78 avatar May 20 '24 13:05 Darkomen78

Without having investigated it further, it should work with the event system, as an event is fired with each upload. Unfortunately, since no PRs are merged, this will be a waste of time. Since the result will be a simple .js file, it would probably make sense to create a separate repository for this if there is enough interest.

Maytrok avatar Jul 05 '24 21:07 Maytrok

Ok, thanks for that idea. For now, I have build a stack with cadvisor, node-exporter and prometheus.

Darkomen78 avatar Jul 08 '24 13:07 Darkomen78