fix value type

Signed-off-by: dongjiang1989 <dongjiang1989@126.com>
This commit is contained in:
dongjiang1989 2023-10-16 22:12:34 +08:00
parent 90700a22ab
commit b731319d47
No known key found for this signature in database

View file

@ -853,7 +853,7 @@ func (c *mountStatsCollector) updateNFSStats(ch chan<- prometheus.Metric, s *pro
ch <- prometheus.MustNewConstMetric( ch <- prometheus.MustNewConstMetric(
c.NFSTransportRdmaRequestTotal, c.NFSTransportRdmaRequestTotal,
prometheus.ValueType, prometheus.GaugeValue,
float64(s.Transport.TotalRdmaRequest), float64(s.Transport.TotalRdmaRequest),
labelValues..., labelValues...,
) )
@ -916,7 +916,7 @@ func (c *mountStatsCollector) updateNFSStats(ch chan<- prometheus.Metric, s *pro
ch <- prometheus.MustNewConstMetric( ch <- prometheus.MustNewConstMetric(
c.NFSTransportRdmaReplyTotal, c.NFSTransportRdmaReplyTotal,
prometheus.ValueType, prometheus.GaugeValue,
float64(s.Transport.TotalRdmaReply), float64(s.Transport.TotalRdmaReply),
labelValues..., labelValues...,
) )