From a0a89d4b109a2132516cfc2cfa70f8d6ea519346 Mon Sep 17 00:00:00 2001 From: jiceatscion <139873336+jiceatscion@users.noreply.github.com> Date: Thu, 2 Nov 2023 10:45:51 +0100 Subject: [PATCH] router: fix interface label of router metrics (#4430) The interface label value of every metric instance had been lost to a refactoring in #4422. --- router/metrics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router/metrics.go b/router/metrics.go index df7af4c74f..6c7f9ad7d4 100644 --- a/router/metrics.go +++ b/router/metrics.go @@ -283,7 +283,7 @@ func newInterfaceMetrics( localIA addr.IA, neighbors map[uint16]addr.IA) interfaceMetrics { - ifLabels := interfaceLabels(0, localIA, neighbors) + ifLabels := interfaceLabels(id, localIA, neighbors) m := interfaceMetrics{} for sc := minSizeClass; sc < maxSizeClass; sc++ { scLabels := prometheus.Labels{"sizeclass": sc.String()}