Add grafana support
Metrics I would like to track Done in order of priority
-
QR Code Scans - time, IP -
Scans in last x time
-
-
Files - Would need to add a counter for total files, and file size in stats.db
- Could potentially add it per filetype
-
File Size -
Would need to add filesize to files.db
-
Would need to duplicate for permanent
-
-
File Type - files.db has that, with some regex shit would work
-
File Viewed - Each view should add a counter to each active file, would need to add views to files.db
- Could potentially add it per filetype
-
File Deleted - impossible to do with files.db, probably just track total files deleted by url, and another for by cleaner
-
File Deletion Time (if 0x0 is enabled) - Calculate file deletion time during upload, and add to files.db - then add avg to stats.db
- Could potentially add it per filetype
-
Views on each page -
WebRequest Errors (4xx,500)
- Would need to add a counter for total files, and file size in stats.db
-
Workers -
Worker Busy -
Workers RAM usage
-
/metrics/ page just reads from table once per call (15 seconds?)
- Don't calculate anyting on that function, just read the database
- Create a new table with stats on each stuff
- Create a new table for qrcodes, as that's gonna be separate