Merge pull request #411 from breed808/established_gauge

Set tcp_connections_established to gauge type
This commit is contained in:
Calle Pettersson
2019-10-01 17:53:13 +02:00
committed by GitHub

View File

@@ -136,7 +136,7 @@ func (c *TCPCollector) collect(ch chan<- prometheus.Metric) (*prometheus.Desc, e
)
ch <- prometheus.MustNewConstMetric(
c.ConnectionsEstablished,
prometheus.CounterValue,
prometheus.GaugeValue,
float64(dst[0].ConnectionsEstablished),
)
ch <- prometheus.MustNewConstMetric(