@@ 26,7 26,6 @@ export const generatePrometheusString = async (): Promise<string> => {
const userData = await getSessionInfo(user);
if (!userData || userData.onlineStatus !== 'Online' || !userData.activeSessions) {
- console.log("no sessions found");
return;
}
@@ 35,11 34,9 @@ export const generatePrometheusString = async (): Promise<string> => {
return `player_count{label="${session.name}"} ${session.joinedUsers}`;
});
- return prometheusString.join('\n');
+ return `\n${prometheusString.join('\n')}`;
}));
- console.log(fullPrometheusString);
-
if (!fullPrometheusString) {
return `player_count{label="total"} ${totalPlayers}`;
}