Skip to content

Commit

Permalink
router: fix interface label of router metrics (scionproto#4430)
Browse files Browse the repository at this point in the history
The interface label value of every metric instance had been lost to a refactoring in scionproto#4422.
  • Loading branch information
jiceatscion authored Nov 2, 2023
1 parent 8b498a4 commit a0a89d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion router/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()}
Expand Down

0 comments on commit a0a89d4

Please sign in to comment.