Set current_bandwidth to gauge type

Bandwidth estimate for an interface may decrease or increase
This commit is contained in:
Ben Reedy
2019-08-28 21:12:14 +10:00
parent a7b5cf7aa6
commit 2c155a12bd
2 changed files with 2 additions and 2 deletions

View File

@@ -252,7 +252,7 @@ func (c *NetworkCollector) collect(ch chan<- prometheus.Metric) (*prometheus.Des
)
ch <- prometheus.MustNewConstMetric(
c.CurrentBandwidth,
prometheus.CounterValue,
prometheus.GaugeValue,
float64(nic.CurrentBandwidth),
name,
)