Add missing metrics to Exporter.Describe()
This commit is contained in:
parent
9d75397387
commit
fd58e84d40
1 changed files with 6 additions and 0 deletions
|
@ -222,6 +222,7 @@ func (e *Exporter) Collect(ch chan<- prometheus.Metric) {
|
||||||
|
|
||||||
// Describe exposes the metric description to Prometheus
|
// Describe exposes the metric description to Prometheus
|
||||||
func (e *Exporter) Describe(ch chan<- *prometheus.Desc) {
|
func (e *Exporter) Describe(ch chan<- *prometheus.Desc) {
|
||||||
|
ch <- e.up
|
||||||
ch <- e.startSince
|
ch <- e.startSince
|
||||||
ch <- e.acceptedConnections
|
ch <- e.acceptedConnections
|
||||||
ch <- e.listenQueue
|
ch <- e.listenQueue
|
||||||
|
@ -233,6 +234,11 @@ func (e *Exporter) Describe(ch chan<- *prometheus.Desc) {
|
||||||
ch <- e.maxActiveProcesses
|
ch <- e.maxActiveProcesses
|
||||||
ch <- e.maxChildrenReached
|
ch <- e.maxChildrenReached
|
||||||
ch <- e.slowRequests
|
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
|
// calculateProcessHash generates a unique identifier for a process to ensure uniqueness across multiple systems/containers
|
||||||
|
|
Loading…
Reference in a new issue