Initial commit

This commit is contained in:
2026-08-24 22:20:36 +02:00
commit 62f7b1278a
251 changed files with 16670 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
const client = require("prom-client");
const collectDefaultMetrics = client.collectDefaultMetrics;
collectDefaultMetrics();
const onlinePlayers = new client.Gauge({
name: "game_online_players",
help: "Number of currently online players",
collect() {
this.set(Math.floor(Math.random() * 1000));
}
});
module.exports = {
register: client.register,
onlinePlayers
};