Fixed Mumble probing.

This commit is contained in:
Christian P. MOMON 2022-01-05 01:27:01 +01:00
parent f4338ca7b2
commit 8f8bb0dffc
2 changed files with 15 additions and 4 deletions

View file

@ -50,7 +50,7 @@ public class MumbleLogAnalyzer
// .arg(QChar::fromLatin1(c)) // .arg(QChar::fromLatin1(c))
// .arg(QDateTime::currentDateTime().toString("yyyy-MM-dd hh:mm:ss.zzz")) // .arg(QDateTime::currentDateTime().toString("yyyy-MM-dd hh:mm:ss.zzz"))
// .arg(msg); // .arg(msg);
public static final Pattern MUMBLE_LOG_PATTERN = Pattern.compile("^<(?<level>[DWCFX])>(?<time>\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}.\\d{3}) (?<message>.*)$"); public static final Pattern MUMBLE_LOG_PATTERN = Pattern.compile("^<(?<level>[DWCFX])>(?<datetime>\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}.\\d{3}) (?<message>.*)$");
private int errorCount; private int errorCount;
private PathCounters counters; private PathCounters counters;

View file

@ -55,13 +55,24 @@ public class MumbleProber
{ {
PathCounters result; PathCounters result;
// metrics.service.users
// metrics.service.ip
// metrics.service.ip.ipv4
// metrics.service.ip.ipv6
// metrics.audioconferencing.joiners
// metrics.audioconferencing.rooms.active
// metrics.mumble.logs.debug
// metrics.mumble.logs.warning
// metrics.mumble.logs.critical
// metrics.mumble.logs.fatal
// metrics.mumble.logs.default
result = MumbleLogAnalyzer.probe(logs); result = MumbleLogAnalyzer.probe(logs);
// result.putAll(MumbleDatabaseAnalyzer.probe()); // result.putAll(MumbleDatabaseAnalyzer.probe());
// metrics.service.accounts
// metrics.service.database.bytes
// accounts // metrics.service.files.bytes
// database size
// file size
// //
return result; return result;