mirror of
https://github.com/prometheus/node_exporter.git
synced 2025-03-05 21:00:12 -08:00
fix value type
Signed-off-by: dongjiang1989 <dongjiang1989@126.com>
This commit is contained in:
parent
90700a22ab
commit
b731319d47
|
@ -853,7 +853,7 @@ func (c *mountStatsCollector) updateNFSStats(ch chan<- prometheus.Metric, s *pro
|
|||
|
||||
ch <- prometheus.MustNewConstMetric(
|
||||
c.NFSTransportRdmaRequestTotal,
|
||||
prometheus.ValueType,
|
||||
prometheus.GaugeValue,
|
||||
float64(s.Transport.TotalRdmaRequest),
|
||||
labelValues...,
|
||||
)
|
||||
|
@ -916,7 +916,7 @@ func (c *mountStatsCollector) updateNFSStats(ch chan<- prometheus.Metric, s *pro
|
|||
|
||||
ch <- prometheus.MustNewConstMetric(
|
||||
c.NFSTransportRdmaReplyTotal,
|
||||
prometheus.ValueType,
|
||||
prometheus.GaugeValue,
|
||||
float64(s.Transport.TotalRdmaReply),
|
||||
labelValues...,
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue