SemoxyMC / Server

The backend code for Semoxy
GNU General Public License v3.0
0 stars 0 forks source link

Statistic Logging #22

Closed xImAnton closed 3 years ago

xImAnton commented 3 years ago

Add diagrams to webinterface that show online players, ram and cpu usage, world size and stats like that over the time. Maybe a SQL database would be better for these statistics that are logged frequently. The table for these stats would look like this:

CREATE TABLE statistics (
    server VARCHAR(26) NOT NULL,
    time_ TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
    playerCount SMALLINT,
    ramUsage INT,
    cpuUsage DECIMAL(4, 2)
);