Remove the stalemanifests metrics (which are no longer in use)
authorjob <job@openbsd.org>
Tue, 13 Feb 2024 20:41:22 +0000 (20:41 +0000)
committerjob <job@openbsd.org>
Tue, 13 Feb 2024 20:41:22 +0000 (20:41 +0000)
OK tb@

usr.sbin/rpki-client/output-json.c
usr.sbin/rpki-client/output-ometric.c

index eb074ef..9c8f3f2 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: output-json.c,v 1.41 2024/02/03 14:30:47 job Exp $ */
+/*     $OpenBSD: output-json.c,v 1.42 2024/02/13 20:41:22 job Exp $ */
 /*
  * Copyright (c) 2019 Claudio Jeker <claudio@openbsd.org>
  *
@@ -77,9 +77,6 @@ outputheader_json(struct stats *st)
        json_do_int("cachedir_del_superfluous_files",
            st->repo_stats.del_extra_files);
 
-       /* XXX: remove in rpki-client 9.0 */
-       json_do_int("stalemanifests", 0);
-
        json_do_end();
 }
 
index 48713be..1addf16 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: output-ometric.c,v 1.6 2024/02/03 14:30:47 job Exp $ */
+/*     $OpenBSD: output-ometric.c,v 1.7 2024/02/13 20:41:22 job Exp $ */
 /*
  * Copyright (c) 2022 Claudio Jeker <claudio@openbsd.org>
  *
@@ -48,10 +48,6 @@ set_common_stats(const struct repotalstats *in, struct ometric *metric,
        ometric_set_int_with_labels(metric, in->mfts_fail,
            OKV("type", "state"), OKV("manifest", "failed parse"), ol);
 
-       /* XXX: remove in rpki-client 9.0 */
-       ometric_set_int_with_labels(metric, 0,
-           OKV("type", "state"), OKV("manifest", "stale"), ol);
-
        ometric_set_int_with_labels(metric, in->roas,
            OKV("type", "state"), OKV("roa", "valid"), ol);
        ometric_set_int_with_labels(metric, in->roas_fail,