Skip to content

Commit

Permalink
Merge pull request #18 from Nyoroon/patch-1
Browse files Browse the repository at this point in the history
Fix: Swapped `start since` / `accepted conenctions`
  • Loading branch information
estahn authored Mar 5, 2018
2 parents 3e50283 + b1f016d commit 8f38f94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions phpfpm/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ 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.startSince, 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)
Expand Down

0 comments on commit 8f38f94

Please sign in to comment.