elastic_search plugin: split queues and rejections chart into two
Ilya committed
Feb 17, 2017 at 16:32 UTC
7f990ae6ea86dabf145c8c602eb1396653c8141d
1 file changed
+20
-14
python.d/elasticsearch.chart.py
+20
-14
@@ -20,9 +20,10 @@ retries = 60
20
# charts order (can be overridden if you want less charts, or different order)
21
ORDER = ['search_perf_total', 'search_perf_time', 'search_latency', 'index_perf_total', 'index_perf_time',
22
'index_latency', 'jvm_mem_heap', 'jvm_gc_count', 'jvm_gc_time', 'host_metrics_file_descriptors',
23
- 'host_metrics_http', 'host_metrics_transport', 'thread_pool_qr', 'fdata_cache', 'fdata_ev_tr',
24
- 'cluster_health_status', 'cluster_health_nodes', 'cluster_health_shards', 'cluster_stats_nodes',
25
- 'cluster_stats_query_cache', 'cluster_stats_docs', 'cluster_stats_store', 'cluster_stats_indices_shards']
23
+ 'host_metrics_http', 'host_metrics_transport', 'thread_pool_qr_q', 'thread_pool_qr_r', 'fdata_cache',
24
+ 'fdata_ev_tr', 'cluster_health_status', 'cluster_health_nodes', 'cluster_health_shards',
25
+ 'cluster_stats_nodes', 'cluster_stats_query_cache', 'cluster_stats_docs', 'cluster_stats_store',
26
+ 'cluster_stats_indices_shards']
27
28
CHARTS = {
29
'search_perf_total': {
@@ -88,18 +89,23 @@ CHARTS = {
89
['young_collection_time_in_millis', 'young', 'incremental'],
90
['old_collection_time_in_millis', 'old', 'incremental']
91
]},
91
- 'thread_pool_qr': {
92
- 'options': [None, 'Number of queued/rejected threads in thread pool', 'threads', 'queues and rejections',
93
- 'es.qr', 'stacked'],
92
+ 'thread_pool_qr_q': {
93
+ 'options': [None, 'Number of queued threads in thread pool', 'queued threads', 'queues and rejections',
94
+ 'es.qr_queued', 'stacked'],
95
'lines': [
95
- ['bulk_queue', 'bulk_queue', 'absolute'],
96
- ['index_queue', 'index_queue', 'absolute'],
97
- ['search_queue', 'search_queue', 'absolute'],
98
- ['merge_queue', 'merge_queue', 'absolute'],
99
- ['bulk_rejected', 'bulk_rej', 'absolute'],
100
- ['index_rejected', 'index_rej', 'absolute'],
101
- ['search_rejected', 'search_rej', 'absolute'],
102
- ['merge_rejected', 'merge_rej', 'absolute']
96
+ ['bulk_queue', 'bulk', 'absolute'],
97
+ ['index_queue', 'index', 'absolute'],
98
+ ['search_queue', 'search', 'absolute'],
99
+ ['merge_queue', 'merge', 'absolute']
100
+ ]},
101
+ 'thread_pool_qr_r': {
102
+ 'options': [None, 'Number of rejected threads in thread pool', 'rejected threads', 'queues and rejections',
103
+ 'es.qr_rejected', 'stacked'],
104
+ 'lines': [
105
+ ['bulk_rejected', 'bulk', 'absolute'],
106
+ ['index_rejected', 'index', 'absolute'],
107
+ ['search_rejected', 'search', 'absolute'],
108
+ ['merge_rejected', 'merge', 'absolute']
109
]},
110
'fdata_cache': {
111
'options': [None, 'Fielddata cache size', 'MB', 'fielddata cache', 'es.fdata_cache', 'line'],