swar / Swar-Chia-Plot-Manager

This is a Cross-Platform Plot Manager for Chia Plotting that is simple, easy-to-use, and reliable.
GNU General Public License v3.0
1.26k stars 388 forks source link

[Feature Request] Add option to upload Logs to summarize statistic #882

Open lorado opened 3 years ago

lorado commented 3 years ago

Hi @swar

your library is 🔥 =)

Would you like to add an option to automatically upload logs of created plots to my statistic page? https://chia-stats.lorado.dev/upload-log

Currently I generate an ID and store it in local storage, to keep all uploaded logs together and so it is possible to keep track of own performance. Here is an example of how it looks, if you take a look at your stats:

Bildschirmfoto 2021-05-25 um 18 54 32

After I started using your plot manager, I stopped uploading my logs - too lazy :D But if it would be automatically made... I would definitely enable this option.

At the moment there is no API to achieve this. But if you have an interest, and would like to implement it, I will create an API endpoint for uploading logs. So... let me know, if you have interest in it.

And maybe a community would like also to say something? Would you like to have this feature?

OR maybe we could go further - you could maybe create a json about what is going on (data like for view command) every 5-10 minutes, and send it to an API endpoint, I will host my page, so actually everyone could have an dashboard about running plot managers with only small delay (depends on delay how often you send requests)

creamsoup commented 3 years ago

you can do when #452 with your own shell script. doesn't seem like it is proper to make plot manager shipping logs. alternatively, you could write a simple script to watch log directory and upload the file.

lorado commented 3 years ago

Well, plot manager has integrated notifications, therefore I thought uploading logs could be an optional part of plot manager.

452 sounds great, but anyway - every user would have to implement the script on its own machine. I would prefer if the code is in plot manager and users may enable it with config.yaml, by defining e.g. uploading keys

creamsoup commented 3 years ago

i understand that it could be nice to make the plot manager notify your web app. unless your web app is well adapted it seems fairly useless for 99.9% of users. did you consider open source log collectors like logstash?

Mehmet-Erkan commented 3 years ago

@creamsoup: same... analyzing your plots just by parsing it out, its not really an added value to the plot manager. Important info like performance metrics, plot config, hardware config should be considered as well for a proper analyzing tool