Cuberite Forum
[DONE] Online statistics plugin - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Plugins (https://forum.cuberite.org/forum-1.html)
+--- Forum: Plugin Requests (https://forum.cuberite.org/forum-3.html)
+--- Thread: [DONE] Online statistics plugin (/thread-1235.html)

Pages: 1 2


[DONE] Online statistics plugin - xoft - 08-26-2013

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?


RE: Online statistics plugin - NiLSPACE - 08-26-2013

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 ;(


RE: Online statistics plugin - NiLSPACE - 08-27-2013

First attempt:


RE: Online statistics plugin - bearbin - 08-27-2013

Seems good so far.


RE: Online statistics plugin - xoft - 08-27-2013

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?


RE: Online statistics plugin - bearbin - 08-27-2013

Seems good.


RE: Online statistics plugin - xoft - 09-19-2013

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.


RE: Online statistics plugin - xoft - 09-20-2013

First version is out:
https://github.com/madmaxoft/PerfPages

Forum post: https://forum.cuberite.org/showthread.php?tid=1245


RE: Online statistics plugin - xoft - 11-21-2013

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?


RE: Online statistics plugin - NiLSPACE - 11-21-2013

I support that idea Smile