From 4b1490a000e359e09c48bcd38a17f07acc426fe2 Mon Sep 17 00:00:00 2001 From: Joshua Carp Date: Wed, 2 Aug 2017 14:37:06 -0400 Subject: [PATCH] Fix indexing calls and time metrics. (#83) --- collector/nodes.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/collector/nodes.go b/collector/nodes.go index 7a406fbd..92f3d6e7 100644 --- a/collector/nodes.go +++ b/collector/nodes.go @@ -464,7 +464,7 @@ func NewNodes(logger log.Logger, client *http.Client, url *url.URL, all bool) *N Type: prometheus.CounterValue, Desc: prometheus.NewDesc( prometheus.BuildFQName(namespace, "indices_indexing", "index_time_seconds_total"), - "Total index calls", + "Cumulative index time in seconds", defaultNodeLabels, nil, ), Value: func(node NodeStatsNodeResponse) float64 { @@ -476,7 +476,7 @@ func NewNodes(logger log.Logger, client *http.Client, url *url.URL, all bool) *N Type: prometheus.CounterValue, Desc: prometheus.NewDesc( prometheus.BuildFQName(namespace, "indices_indexing", "index_total"), - "Cumulative index time in seconds", + "Total index calls", defaultNodeLabels, nil, ), Value: func(node NodeStatsNodeResponse) float64 {