From 999b61d3be5ca3b5548c86668266fbc07f8d9a26 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Fri, 6 Jan 2023 23:07:50 +0100 Subject: [PATCH] Added chat metrics for Minetest. --- .../statoolinfos/metrics/minetest/MinetestLogAnalyzer.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/fr/devinsy/statoolinfos/metrics/minetest/MinetestLogAnalyzer.java b/src/fr/devinsy/statoolinfos/metrics/minetest/MinetestLogAnalyzer.java index 444e76b..d5e4f7b 100644 --- a/src/fr/devinsy/statoolinfos/metrics/minetest/MinetestLogAnalyzer.java +++ b/src/fr/devinsy/statoolinfos/metrics/minetest/MinetestLogAnalyzer.java @@ -195,6 +195,10 @@ public class MinetestLogAnalyzer { this.counters.inc("metrics.metaverse.joiners", year, yearMonth, yearWeek, date); } + else if (log.getMessage().contains("CHAT: <")) + { + this.counters.inc("metrics.metaverse.chat", year, yearMonth, yearWeek, date); + } // metrics.service.ip // metrics.service.ip.ipv4