diff --git a/src/fr/devinsy/statoolinfos/metrics/Prober.java b/src/fr/devinsy/statoolinfos/metrics/Prober.java index 4406d0f..d74a6f8 100644 --- a/src/fr/devinsy/statoolinfos/metrics/Prober.java +++ b/src/fr/devinsy/statoolinfos/metrics/Prober.java @@ -245,6 +245,7 @@ public class Prober // Temporary fixed 2022-02. previousCounters.renamePath("metrics.service.files", "metrics.service.datafiles"); + previousCounters.renamePath("metrics.barcodes.count", "metrics.barcodes.created"); // Merge. logger.info("== Merging"); diff --git a/src/fr/devinsy/statoolinfos/metrics/libreqr/LibreQRProber.java b/src/fr/devinsy/statoolinfos/metrics/libreqr/LibreQRProber.java index 76dc661..8bbb885 100644 --- a/src/fr/devinsy/statoolinfos/metrics/libreqr/LibreQRProber.java +++ b/src/fr/devinsy/statoolinfos/metrics/libreqr/LibreQRProber.java @@ -69,7 +69,7 @@ public class LibreQRProber // metrics.service.users // metrics.service.users.ipv4 // metrics.service.users.ipv6 - // metrics.barcodes.count + // metrics.barcodes.created // metrics.libreqr.barcodes.downloads result = probeHttpAccessLog(httpLogs, httpLogRegex); @@ -136,10 +136,10 @@ public class LibreQRProber } } - // metrics.barcodes.count + // metrics.barcodes.created if ((log.getStatus().getCode() == 200) && (CREATE_PATTERN.matcher(log.getRequest()).matches())) { - result.inc("metrics.barcodes.count", year, yearMonth, yearWeek, date); + result.inc("metrics.barcodes.created", year, yearMonth, yearWeek, date); } // metrics.libreqr.barcodes.downloads