diff --git a/src/fr/devinsy/statoolinfos/metrics/Prober.java b/src/fr/devinsy/statoolinfos/metrics/Prober.java index 17fdd1f..dfd1661 100644 --- a/src/fr/devinsy/statoolinfos/metrics/Prober.java +++ b/src/fr/devinsy/statoolinfos/metrics/Prober.java @@ -22,6 +22,7 @@ import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.io.UnsupportedEncodingException; +import java.time.LocalDateTime; import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; @@ -152,6 +153,17 @@ public class Prober StringList prefixes = counters.getPrefixes(); StringList metrics = new StringList(); + + // + metrics.appendln("# [File]"); + metrics.appendln("file.class=metrics"); + metrics.appendln("file.generator=StatoolInfos"); + metrics.appendln("file.datetime=" + LocalDateTime.now().toString()); + metrics.appendln("file.protocol=StatoolInfos-0.3.0"); + metrics.appendln(); + metrics.appendln("# [Metrics]"); + + // for (String prefix : prefixes) { logger.info("====== {}", prefix);