fix elasticsearch plugin (#6311)
Wei He committed
Jun 20, 2019 at 14:22 UTC
fe8279c31d2387c8da8b2e02c99fabf915b88c02
1 file changed
+12
-12
collectors/python.d.plugin/elasticsearch/elasticsearch.chart.py
+12
-12
@@ -10,9 +10,9 @@ from collections import namedtuple
10
from socket import gethostbyname, gaierror
11
12
try:
13
- from queue import Queue
13
+ from queue import Queue
14
except ImportError:
15
- from Queue import Queue
15
+ from Queue import Queue
16
17
from bases.FrameworkServices.UrlService import UrlService
18
@@ -83,11 +83,11 @@ NODE_STATS = [
83
]
84
85
CLUSTER_STATS = [
86
- 'nodes.count.data_only',
87
- 'nodes.count.master_data',
86
+ 'nodes.count.data',
87
+ 'nodes.count.master',
88
'nodes.count.total',
89
- 'nodes.count.master_only',
90
- 'nodes.count.client',
89
+ 'nodes.count.coordinating_only',
90
+ 'nodes.count.ingest',
91
'indices.docs.count',
92
'indices.query_cache.hit_count',
93
'indices.query_cache.miss_count',
@@ -371,7 +371,7 @@ CHARTS = {
371
},
372
'cluster_health_nodes': {
373
'options': [None, 'Nodes Statistics', 'nodes', 'cluster health API',
374
- 'elastic.cluster_health_nodes', 'stacked'],
374
+ 'elastic.cluster_health_nodes', 'area'],
375
'lines': [
376
['number_of_nodes', 'nodes', 'absolute'],
377
['number_of_data_nodes', 'data_nodes', 'absolute'],
@@ -417,13 +417,13 @@ CHARTS = {
417
},
418
'cluster_stats_nodes': {
419
'options': [None, 'Nodes Statistics', 'nodes', 'cluster stats API',
420
- 'elastic.cluster_nodes', 'stacked'],
420
+ 'elastic.cluster_nodes', 'area'],
421
'lines': [
422
- ['nodes_count_data_only', 'data_only', 'absolute'],
423
- ['nodes_count_master_data', 'master_data', 'absolute'],
422
+ ['nodes_count_data', 'data', 'absolute'],
423
+ ['nodes_count_master', 'master', 'absolute'],
424
['nodes_count_total', 'total', 'absolute'],
425
- ['nodes_count_master_only', 'master_only', 'absolute'],
426
- ['nodes_count_client', 'client', 'absolute']
425
+ ['nodes_count_ingest', 'ingest', 'absolute'],
426
+ ['nodes_count_coordinating_only', 'coordinating_only', 'absolute']
427
]
428
},
429
'cluster_stats_query_cache': {