diff --git a/internal/collector/net/net.go b/internal/collector/net/net.go index 3703de9c2..7e445c096 100644 --- a/internal/collector/net/net.go +++ b/internal/collector/net/net.go @@ -391,7 +391,7 @@ func (c *Collector) collectNICAddresses(ch chan<- prometheus.Metric) error { return err } - convertNicName := strings.NewReplacer("(", "[", ")", "]") + convertNicName := strings.NewReplacer("(", "[", ")", "]", "#", "_") for _, nicAdapterAddress := range nicAdapterAddresses { friendlyName := windows.UTF16PtrToString(nicAdapterAddress.FriendlyName)