--- mdlayher/wg-export/source/collector.go 2026-02-16 11:45:56.765101004 +0100 +++ collector.go 2026-02-16 11:45:28.349108068 +0100 @@ -62,14 +62,14 @@ PeerReceiveBytes: prometheus.NewDesc( "wireguard_peer_receive_bytes_total", "Number of bytes received from a given peer.", - labels, + append(labels, []string{"endpoint", "name"}...), nil, ), PeerTransmitBytes: prometheus.NewDesc( "wireguard_peer_transmit_bytes_total", "Number of bytes transmitted to a given peer.", - labels, + append(labels, []string{"endpoint", "name"}...), nil, ), @@ -150,14 +150,14 @@ c.PeerReceiveBytes, prometheus.CounterValue, float64(p.ReceiveBytes), - d.Name, pub, + d.Name, pub, endpoint, name, ) ch <- prometheus.MustNewConstMetric( c.PeerTransmitBytes, prometheus.CounterValue, float64(p.TransmitBytes), - d.Name, pub, + d.Name, pub, endpoint, name, ) // Expose last handshake of 0 unless a last handshake time is set.