@cryptotaxi247 / netdata-1 / commits / ae0f9f9e4

elastic_search plugin: split "total/in progress" into two

Ilya committed Feb 17, 2017 at 17:08 UTC ae0f9f9e4565c56924e6fe6095e781c31f1ad455
1 file changed +24 -15
python.d/elasticsearch.chart.py
+24 -15
@@ -18,21 +18,25 @@ priority = 60000
18 retries = 60
19
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_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']
21 +ORDER = ['search_perf_total', 'search_perf_current', 'search_perf_time', 'search_latency', 'index_perf_total',
22 + 'index_perf_current', 'index_perf_time', 'index_latency', 'jvm_mem_heap', 'jvm_gc_count',
23 + 'jvm_gc_time', 'host_metrics_file_descriptors', 'host_metrics_http', 'host_metrics_transport',
24 + 'thread_pool_qr_q', 'thread_pool_qr_r', 'fdata_cache', 'fdata_ev_tr', 'cluster_health_status',
25 + 'cluster_health_nodes', 'cluster_health_shards', 'cluster_stats_nodes', 'cluster_stats_query_cache',
26 + 'cluster_stats_docs', 'cluster_stats_store', 'cluster_stats_indices_shards']
27
28 CHARTS = {
29 'search_perf_total': {
30 - 'options': [None, 'Number of queries, fetches', 'queries', 'search performance', 'es.search_query', 'stacked'],
30 + 'options': [None, 'Total number of queries, fetches', 'number of', 'search performance', 'es.search_query_total', 'stacked'],
31 'lines': [
32 - ['query_total', 'search_total', 'incremental'],
33 - ['fetch_total', 'fetch_total', 'incremental'],
34 - ['query_current', 'search_current', 'absolute'],
35 - ['fetch_current', 'fetch_current', 'absolute']
32 + ['query_total', 'queries', 'incremental'],
33 + ['fetch_total', 'fetches', 'incremental']
34 + ]},
35 + 'search_perf_current': {
36 + 'options': [None, 'Number of queries, fetches in progress', 'number of', 'search performance', 'es.search_query_current', 'stacked'],
37 + 'lines': [
38 + ['query_current', 'queries', 'absolute'],
39 + ['fetch_current', 'fetches', 'absolute']
40 ]},
41 'search_perf_time': {
42 'options': [None, 'Time spent on queries, fetches', 'seconds', 'search performance', 'es.search_time', 'stacked'],
@@ -47,13 +51,18 @@ CHARTS = {
51 ['fetch_latency', 'fetch', 'absolute', 1, 1000]
52 ]},
53 'index_perf_total': {
50 - 'options': [None, 'Number of documents indexed, index refreshes, flushes', 'documents/indexes',
51 - 'indexing performance', 'es.index_doc', 'stacked'],
54 + 'options': [None, 'Total number of documents indexed, index refreshes, index flushes to disk', 'number of',
55 + 'indexing performance', 'es.index_performance_total', 'stacked'],
56 'lines': [
57 ['indexing_index_total', 'indexed', 'incremental'],
58 ['refresh_total', 'refreshes', 'incremental'],
55 - ['flush_total', 'flushes', 'incremental'],
56 - ['indexing_index_current', 'indexed_current', 'absolute'],
59 + ['flush_total', 'flushes', 'incremental']
60 + ]},
61 + 'index_perf_current': {
62 + 'options': [None, 'Number of documents currently being indexed', 'currently indexed',
63 + 'indexing performance', 'es.index_performance_current', 'stacked'],
64 + 'lines': [
65 + ['indexing_index_current', 'documents', 'absolute']
66 ]},
67 'index_perf_time': {
68 'options': [None, 'Time spent on indexing, refreshing, flushing', 'seconds', 'indexing performance',