From b731b9ad90646b6e70cefeac8447fb4e90a95379 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Fri, 4 Mar 2022 00:57:09 +0100 Subject: [PATCH] Renamed metrics.barcodes.count to metrics.barcodes.created. --- src/fr/devinsy/statoolinfos/metrics/Prober.java | 1 + .../devinsy/statoolinfos/metrics/libreqr/LibreQRProber.java | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) 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