From fd58e84d409e7c6cd7e8481022c2ffdcce41794b Mon Sep 17 00:00:00 2001 From: Enrico Stahn Date: Thu, 1 Mar 2018 11:07:51 +1100 Subject: [PATCH] Add missing metrics to `Exporter.Describe()` --- phpfpm/exporter.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/phpfpm/exporter.go b/phpfpm/exporter.go index 8235e85..9be25de 100644 --- a/phpfpm/exporter.go +++ b/phpfpm/exporter.go @@ -222,6 +222,7 @@ func (e *Exporter) Collect(ch chan<- prometheus.Metric) { // Describe exposes the metric description to Prometheus func (e *Exporter) Describe(ch chan<- *prometheus.Desc) { + ch <- e.up ch <- e.startSince ch <- e.acceptedConnections ch <- e.listenQueue @@ -233,6 +234,11 @@ func (e *Exporter) Describe(ch chan<- *prometheus.Desc) { ch <- e.maxActiveProcesses ch <- e.maxChildrenReached ch <- e.slowRequests + ch <- e.processState + ch <- e.processRequests + ch <- e.processLastRequestMemory + ch <- e.processLastRequestCPU + ch <- e.processRequestDuration } // calculateProcessHash generates a unique identifier for a process to ensure uniqueness across multiple systems/containers