mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-08-13 03:10:44 +00:00
fix prometheus metric labels
This commit is contained in:
@@ -9,19 +9,19 @@ promClient.collectDefaultMetrics({ register });
|
|||||||
|
|
||||||
// Add worker-specific metrics
|
// Add worker-specific metrics
|
||||||
const activeGamesGauge = new promClient.Gauge({
|
const activeGamesGauge = new promClient.Gauge({
|
||||||
name: "openfont.active_games_count",
|
name: "openfont_active_games_count",
|
||||||
help: "Number of active games on this worker",
|
help: "Number of active games on this worker",
|
||||||
registers: [register],
|
registers: [register],
|
||||||
});
|
});
|
||||||
|
|
||||||
const connectedClientsGauge = new promClient.Gauge({
|
const connectedClientsGauge = new promClient.Gauge({
|
||||||
name: "openfont.connected_clients_count",
|
name: "openfont_connected_clients_count",
|
||||||
help: "Number of connected clients on this worker",
|
help: "Number of connected clients on this worker",
|
||||||
registers: [register],
|
registers: [register],
|
||||||
});
|
});
|
||||||
|
|
||||||
const memoryUsageGauge = new promClient.Gauge({
|
const memoryUsageGauge = new promClient.Gauge({
|
||||||
name: "openfont.memory_usage_bytes",
|
name: "openfont_memory_usage_bytes",
|
||||||
help: "Current memory usage of the worker process in bytes",
|
help: "Current memory usage of the worker process in bytes",
|
||||||
registers: [register],
|
registers: [register],
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user