@@ -62,6 +62,7 @@ func (c *udpQueuesCollector) Update(ch chan<- prometheus.Metric) error {
62
62
if errIPv4 == nil {
63
63
ch <- prometheus .MustNewConstMetric (c .desc , prometheus .GaugeValue , float64 (s4 .TxQueueLength ), "tx" , "v4" )
64
64
ch <- prometheus .MustNewConstMetric (c .desc , prometheus .GaugeValue , float64 (s4 .RxQueueLength ), "rx" , "v4" )
65
+ ch <- prometheus .MustNewConstMetric (c .desc , prometheus .GaugeValue , float64 (* s4 .Drops ), "drops" , "v4" )
65
66
} else {
66
67
if errors .Is (errIPv4 , os .ErrNotExist ) {
67
68
level .Debug (c .logger ).Log ("msg" , "not collecting ipv4 based metrics" )
@@ -74,6 +75,7 @@ func (c *udpQueuesCollector) Update(ch chan<- prometheus.Metric) error {
74
75
if errIPv6 == nil {
75
76
ch <- prometheus .MustNewConstMetric (c .desc , prometheus .GaugeValue , float64 (s6 .TxQueueLength ), "tx" , "v6" )
76
77
ch <- prometheus .MustNewConstMetric (c .desc , prometheus .GaugeValue , float64 (s6 .RxQueueLength ), "rx" , "v6" )
78
+ ch <- prometheus .MustNewConstMetric (c .desc , prometheus .GaugeValue , float64 (* s6 .Drops ), "drops" , "v6" )
77
79
} else {
78
80
if errors .Is (errIPv6 , os .ErrNotExist ) {
79
81
level .Debug (c .logger ).Log ("msg" , "not collecting ipv6 based metrics" )
0 commit comments