Skip to content

Commit 9122f49

Browse files
authored
Merge pull request #430 from prometheus-community/revert-324-fix_metric_name
Revert "fix metric name for gc counter"
2 parents a85dfc7 + ff01109 commit 9122f49

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ Further Information
163163
| elasticsearch_indices_translog_size_in_bytes | counter | 1 | Total translog size in bytes
164164
| elasticsearch_indices_warmer_time_seconds_total | counter | 1 | Total warmer time in seconds
165165
| elasticsearch_indices_warmer_total | counter | 1 | Total warmer count
166-
| elasticsearch_jvm_gc_collection_count | counter | 2 | Count of JVM GC runs
166+
| elasticsearch_jvm_gc_collection_seconds_count | counter | 2 | Count of JVM GC runs
167167
| elasticsearch_jvm_gc_collection_seconds_sum | counter | 2 | GC run time in seconds
168168
| elasticsearch_jvm_memory_committed_bytes | gauge | 2 | JVM memory currently committed by area
169169
| elasticsearch_jvm_memory_max_bytes | gauge | 1 | JVM memory max

collector/nodes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1529,7 +1529,7 @@ func NewNodes(logger log.Logger, client *http.Client, url *url.URL, all bool, no
15291529
{
15301530
Type: prometheus.CounterValue,
15311531
Desc: prometheus.NewDesc(
1532-
prometheus.BuildFQName(namespace, "jvm_gc", "collection_count"),
1532+
prometheus.BuildFQName(namespace, "jvm_gc", "collection_seconds_count"),
15331533
"Count of JVM GC runs",
15341534
append(defaultNodeLabels, "gc"), nil,
15351535
),

0 commit comments

Comments
 (0)