From b48955e7150ea0f412aa9d8c36c090bd6097b8b5 Mon Sep 17 00:00:00 2001 From: Ezri Zhu Date: Wed, 13 Nov 2024 23:22:16 -0500 Subject: [PATCH] fix prefixes --- lg.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lg.go b/lg.go index 3ea7fac..30f6cf9 100644 --- a/lg.go +++ b/lg.go @@ -78,16 +78,16 @@ func (p *Prefix) checkLGState() { origin := strconv.Itoa(p.origin) for _, rrc := range ripeStatLookingGlassResp.Data.Rrcs { - communities := []string{} + //communities := []string{} for _, peer := range rrc.Peers { - communities = append(communities, peer.Community) + //communities = append(communities, peer.Community) //communities = slices.Compact(communities) - for _, e := range communities { + for _, e := range peer.Community { bgpCommunitiesGauge.WithLabelValues( p.prefix, rrc.Location, p.pop, - e, + string(e), ).Set(1) } }