psi-4ward / psitransfer

Simple open source self-hosted file sharing solution.
BSD 2-Clause "Simplified" License
1.45k stars 211 forks source link

Stats and summary up/down size #307

Open Darkomen78 opened 1 month ago

Darkomen78 commented 1 month ago

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

droplinxuser commented 1 month ago

With the current code, there's no way.

For downloads though, I monitor via Cloudflare stats.

psi-4ward commented 1 month ago

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

Darkomen78 commented 1 month ago

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

Maytrok commented 3 days ago

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.

Darkomen78 commented 1 day ago

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