Add missing metrics to Exporter.Describe()

This commit is contained in:
Enrico Stahn 2018-03-01 11:07:51 +11:00
parent 9d75397387
commit fd58e84d40
No known key found for this signature in database
GPG key ID: 5263621C269A50DE

View file

@ -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