mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-03-03 17:16:37 +00:00
Merge pull request #411 from breed808/established_gauge
Set tcp_connections_established to gauge type
This commit is contained in:
@@ -136,7 +136,7 @@ func (c *TCPCollector) collect(ch chan<- prometheus.Metric) (*prometheus.Desc, e
|
|||||||
)
|
)
|
||||||
ch <- prometheus.MustNewConstMetric(
|
ch <- prometheus.MustNewConstMetric(
|
||||||
c.ConnectionsEstablished,
|
c.ConnectionsEstablished,
|
||||||
prometheus.CounterValue,
|
prometheus.GaugeValue,
|
||||||
float64(dst[0].ConnectionsEstablished),
|
float64(dst[0].ConnectionsEstablished),
|
||||||
)
|
)
|
||||||
ch <- prometheus.MustNewConstMetric(
|
ch <- prometheus.MustNewConstMetric(
|
||||||
|
|||||||
Reference in New Issue
Block a user