Merge pull request #393 from breed808/net_gauge

Set current_bandwidth to gauge type
This commit is contained in:
Calle Pettersson
2019-08-28 22:18:47 +02:00
committed by GitHub
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,
)