From 25dd7b3bc23965fc45498dfcce81d831a0b9a992 Mon Sep 17 00:00:00 2001 From: Smoked Cheese Date: Mon, 5 Mar 2018 17:16:54 +0300 Subject: [PATCH] Fix exporter metrics --- phpfpm/exporter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpfpm/exporter.go b/phpfpm/exporter.go index 9be25de..6069c97 100644 --- a/phpfpm/exporter.go +++ b/phpfpm/exporter.go @@ -198,7 +198,7 @@ func (e *Exporter) Collect(ch chan<- prometheus.Metric) { ch <- prometheus.MustNewConstMetric(e.up, prometheus.GaugeValue, 1, pool.Name) ch <- prometheus.MustNewConstMetric(e.startSince, prometheus.CounterValue, float64(pool.AcceptedConnections), pool.Name) - ch <- prometheus.MustNewConstMetric(e.acceptedConnections, prometheus.CounterValue, float64(pool.StartSince), pool.Name) + ch <- prometheus.MustNewConstMetric(e.acceptedConnections, prometheus.CounterValue, float64(pool.AcceptedConnections), pool.Name) ch <- prometheus.MustNewConstMetric(e.listenQueue, prometheus.GaugeValue, float64(pool.ListenQueue), pool.Name) ch <- prometheus.MustNewConstMetric(e.maxListenQueue, prometheus.CounterValue, float64(pool.MaxListenQueue), pool.Name) ch <- prometheus.MustNewConstMetric(e.listenQueueLength, prometheus.GaugeValue, float64(pool.ListenQueueLength), pool.Name)