From 5acbc7bcb643586b2433e20944fe1b1bcce1e240 Mon Sep 17 00:00:00 2001 From: f4bii Date: Fri, 12 Jul 2024 10:44:43 +0200 Subject: [PATCH] Fix #147 Incorrect number of labels --- .../org/akadia/prometheus/bungeecord/metrics/OnlinePlayer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/akadia/prometheus/bungeecord/metrics/OnlinePlayer.java b/src/main/java/org/akadia/prometheus/bungeecord/metrics/OnlinePlayer.java index 2a7af87..13adf2a 100644 --- a/src/main/java/org/akadia/prometheus/bungeecord/metrics/OnlinePlayer.java +++ b/src/main/java/org/akadia/prometheus/bungeecord/metrics/OnlinePlayer.java @@ -16,7 +16,7 @@ public void doCollect() { ProxyServer proxy = ((PrometheusBungeeCordExporter) getPlugin()).getProxy(); proxy.getServers().forEach((key, value) -> { - this.getGauge().labels(key, "").set(0); + this.getGauge().labels(key, "", "").set(0); value.getPlayers().forEach(proxiedPlayer -> this.getGauge().labels(key, proxiedPlayer.getName(), Boolean.toString(proxy.getConfig().isOnlineMode())).set(1)); });