From a088f0fcaaba1858eef0f28507aa4d3d53fc8ff1 Mon Sep 17 00:00:00 2001 From: Pavlos Daoglou Date: Thu, 20 Feb 2020 19:36:34 +0200 Subject: [PATCH] fix metric name for gc counter --- README.md | 2 +- collector/nodes.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e02c2b18..640c1435 100644 --- a/README.md +++ b/README.md @@ -161,7 +161,7 @@ Further Information | elasticsearch_indices_translog_size_in_bytes | counter | 1 | Total translog size in bytes | elasticsearch_indices_warmer_time_seconds_total | counter | 1 | Total warmer time in seconds | elasticsearch_indices_warmer_total | counter | 1 | Total warmer count -| elasticsearch_jvm_gc_collection_seconds_count | counter | 2 | Count of JVM GC runs +| elasticsearch_jvm_gc_collection_count | counter | 2 | Count of JVM GC runs | elasticsearch_jvm_gc_collection_seconds_sum | counter | 2 | GC run time in seconds | elasticsearch_jvm_memory_committed_bytes | gauge | 2 | JVM memory currently committed by area | elasticsearch_jvm_memory_max_bytes | gauge | 1 | JVM memory max diff --git a/collector/nodes.go b/collector/nodes.go index 43ffa0e8..aab154c6 100644 --- a/collector/nodes.go +++ b/collector/nodes.go @@ -1515,7 +1515,7 @@ func NewNodes(logger log.Logger, client *http.Client, url *url.URL, all bool, no { Type: prometheus.CounterValue, Desc: prometheus.NewDesc( - prometheus.BuildFQName(namespace, "jvm_gc", "collection_seconds_count"), + prometheus.BuildFQName(namespace, "jvm_gc", "collection_count"), "Count of JVM GC runs", append(defaultNodeLabels, "gc"), nil, ),