[DONE] Online statistics plugin
#1
It would be great to have a plugin that would provide a few statistics pages in the webadmin. It could monitor several key performance indicators through time and display graphs for their progress in time. I believe there are technologies to draw graphs in HTML+JS, so it should be possible.

Indicators:
- Server memory usage (cWebAdmin::GetMemoryUsage() has the technology, needs API exporting its values as numbers)
- Per-world tick durations (OnWorldTick()'s a_Dt parameter)
- Per-world number of loaded chunks
- Total and per-world number of players
- Per-world number of entities

Any volunteers?
Reply
Thanks given by:
#2
I'd like to try this but I can't right now. I still have the problem with my screen and school is starting tomorrow ;(
Reply
Thanks given by:
#3
First attempt:


Attached Files
.zip   WorldStats.zip (Size: 912 bytes / Downloads: 248)
Reply
Thanks given by:
#4
Seems good so far.
Reply
Thanks given by:
#5
Seems a good base. Now it needs to query the stuff periodically (in root tick?) and store it in a circular buffer, so that the last 50 or so values are stored; then use some sort of charting JS to produce the graphs. And the per-world tick duration would be especially nice to have; that will need to use the OnWorldTick() hook and store the a_Dt parameter.

How about pushing this plugin as another repo in the mc-server organization account on GitHub?
Reply
Thanks given by:
#6
Seems good.
Reply
Thanks given by:
#7
Yesterday I've started doing something very similar at work. I wrote an internal tool that processes performance logs from our products into HTML+JS-based graphs. I was really amazed at how easy the whole thing was. I think I'll write this for MCS now. It will be a bit more difficult, because the MCS webserver is somewhat limited, but I think we'll have some basics soon.
Reply
Thanks given by:
#8
First version is out:
https://github.com/madmaxoft/PerfPages

Forum post: https://forum.cuberite.org/showthread.php?tid=1245
Reply
Thanks given by:
#9
How about if I moved that plugin to the MCServer organization? It could be then easily included as a submodule in the repo. Any opposition? Any support?
Reply
Thanks given by:
#10
I support that idea Smile
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)