diff --git a/metrics/default_label_strategy.go b/metrics/default_label_strategy.go index 8961721..01fdb61 100644 --- a/metrics/default_label_strategy.go +++ b/metrics/default_label_strategy.go @@ -14,6 +14,7 @@ func (*DefaultLabelStrategy) labelNames() []string { func (*DefaultLabelStrategy) labelValues(p *protocol.Protocol) []string { return []string{p.Name, protoString(p), p.IpVersion} } + func protoString(p *protocol.Protocol) string { switch p.Proto { case protocol.BGP: