Skip to content

Commit 61f9ddc

Browse files
committed
updates for ES 1.4.4 compatibility
1 parent 9f740e8 commit 61f9ddc

1 file changed

Lines changed: 29 additions & 19 deletions

File tree

elasticsearch/python_modules/elasticsearch.py

Lines changed: 29 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,10 @@
2121
# INDICES METRICS #
2222

2323
## CACHE
24-
keyToPath['es_cache_field_eviction'] = "nodes.%s.indices.cache.field_evictions"
25-
keyToPath['es_cache_field_size'] = "nodes.%s.indices.cache.field_size_in_bytes"
26-
keyToPath['es_cache_filter_count'] = "nodes.%s.indices.cache.filter_count"
27-
keyToPath[
28-
'es_cache_filter_evictions'] = "nodes.%s.indices.cache.filter_evictions"
29-
keyToPath[
30-
'es_cache_filter_size'] = "nodes.%s.indices.cache.filter_size_in_bytes"
24+
keyToPath['es_cache_field_eviction'] = "nodes.%s.indices.fielddata.evictions"
25+
keyToPath['es_cache_field_size'] = "nodes.%s.indices.fielddata.memory_size_in_bytes"
26+
keyToPath['es_cache_filter_evictions'] = "nodes.%s.indices.filter_cache.evictions"
27+
keyToPath['es_cache_filter_size'] = "nodes.%s.indices.cache.filter_size_in_bytes"
3128

3229
## DOCS
3330
keyToPath['es_docs_count'] = "nodes.%s.indices.docs.count"
@@ -91,8 +88,10 @@
9188
keyToPath['es_threads_peak'] = "nodes.%s.jvm.threads.peak_count"
9289

9390
## GC
94-
keyToPath['es_gc_time'] = "nodes.%s.jvm.gc.collection_time_in_millis"
95-
keyToPath['es_gc_count'] = "nodes.%s.jvm.gc.collection_count"
91+
keyToPath['es_gc_time_old'] = "nodes.%s.jvm.gc.collectors.old.collection_time_in_millis"
92+
keyToPath['es_gc_count_old'] = "nodes.%s.jvm.gc.collectors.old.collection_count"
93+
keyToPath['es_gc_time_young'] = "nodes.%s.jvm.gc.collectors.young.collection_time_in_millis"
94+
keyToPath['es_gc_count_young'] = "nodes.%s.jvm.gc.collectors.young.collection_count"
9695

9796
# TRANSPORT METRICS #
9897
keyToPath['es_transport_open'] = "nodes.%s.transport.server_open"
@@ -288,7 +287,17 @@ def metric_init(params):
288287

289288
descriptors.append(
290289
_create_desc({
291-
'name': 'es_gc_time',
290+
'name': 'es_gc_time_old',
291+
'units': 'ms',
292+
'format': '%d',
293+
'slope': 'positive',
294+
'description': 'Java GC Time (ms)'
295+
})
296+
)
297+
298+
descriptors.append(
299+
_create_desc({
300+
'name': 'es_gc_time_young',
292301
'units': 'ms',
293302
'format': '%d',
294303
'slope': 'positive',
@@ -376,7 +385,16 @@ def metric_init(params):
376385

377386
descriptors.append(
378387
_create_desc({
379-
'name': 'es_gc_count',
388+
'name': 'es_gc_count_old',
389+
'format': '%d',
390+
'slope': 'positive',
391+
'description': 'Java GC Count',
392+
})
393+
)
394+
395+
descriptors.append(
396+
_create_desc({
397+
'name': 'es_gc_count_young',
380398
'format': '%d',
381399
'slope': 'positive',
382400
'description': 'Java GC Count',
@@ -516,14 +534,6 @@ def metric_init(params):
516534
})
517535
)
518536

519-
descriptors.append(
520-
_create_desc({
521-
'name': 'es_cache_filter_count',
522-
'format': '%d',
523-
'description': 'Filter Cache Count',
524-
})
525-
)
526-
527537
descriptors.append(
528538
_create_desc({
529539
'name': 'es_cache_filter_evictions',

0 commit comments

Comments
 (0)