159
'fielddata_evictions_tripped',
160
'cluster_health_status',
161
'cluster_health_nodes',
162
+ 'cluster_health_pending_tasks',
163
+ 'cluster_health_flight_fetch',
164
'cluster_health_shards',
165
'cluster_stats_nodes',
166
'cluster_stats_query_cache',
167
'cluster_stats_docs',
168
'cluster_stats_store',
167
- 'cluster_stats_indices_shards',
169
+ 'cluster_stats_indices',
170
+ 'cluster_stats_shards_total',
171
]
172
173
CHARTS = {
174
'search_performance_total': {
172
- 'options': [None, 'Queries And Fetches', 'number of', 'search performance',
175
+ 'options': [None, 'Queries And Fetches', 'events/s', 'search performance',
176
'elastic.search_performance_total', 'stacked'],
177
'lines': [
178
['indices_search_query_total', 'queries', 'incremental'],
180
]
181
},
182
'search_performance_current': {
180
- 'options': [None, 'Queries and Fetches In Progress', 'number of', 'search performance',
183
+ 'options': [None, 'Queries and Fetches In Progress', 'events', 'search performance',
184
'elastic.search_performance_current', 'stacked'],
185
'lines': [
186
['indices_search_query_current', 'queries', 'absolute'],
196
]
197
},
198
'search_latency': {
196
- 'options': [None, 'Query And Fetch Latency', 'ms', 'search performance', 'elastic.search_latency', 'stacked'],
199
+ 'options': [None, 'Query And Fetch Latency', 'milliseconds', 'search performance', 'elastic.search_latency', 'stacked'],
200
'lines': [
201
['query_latency', 'query', 'absolute', 1, 1000],
202
['fetch_latency', 'fetch', 'absolute', 1, 1000]
203
]
204
},
205
'index_performance_total': {
203
- 'options': [None, 'Indexed Documents, Index Refreshes, Index Flushes To Disk', 'number of',
206
+ 'options': [None, 'Indexed Documents, Index Refreshes, Index Flushes To Disk', 'events/s',
207
'indexing performance', 'elastic.index_performance_total', 'stacked'],
208
'lines': [
209
['indices_indexing_index_total', 'indexed', 'incremental'],
228
]
229
},
230
'index_latency': {
228
- 'options': [None, 'Indexing And Flushing Latency', 'ms', 'indexing performance',
231
+ 'options': [None, 'Indexing And Flushing Latency', 'milliseconds', 'indexing performance',
232
'elastic.index_latency', 'stacked'],
233
'lines': [
234
['indexing_latency', 'indexing', 'absolute', 1, 1000],
236
]
237
},
238
'index_translog_operations': {
236
- 'options': [None, 'Translog Operations', 'count', 'translog',
239
+ 'options': [None, 'Translog Operations', 'operations', 'translog',
240
'elastic.index_translog_operations', 'area'],
241
'lines': [
242
['indices_translog_operations', 'total', 'absolute'],
244
]
245
},
246
'index_translog_size': {
244
- 'options': [None, 'Translog Size', 'MB', 'translog',
247
+ 'options': [None, 'Translog Size', 'MiB', 'translog',
248
'elastic.index_translog_size', 'area'],
249
'lines': [
250
['indices_translog_size_in_bytes', 'total', 'absolute', 1, 1048567],
252
]
253
},
254
'index_segments_count': {
252
- 'options': [None, 'Total Number Of Indices Segments', 'count', 'indices segments',
255
+ 'options': [None, 'Total Number Of Indices Segments', 'segments', 'indices segments',
256
'elastic.index_segments_count', 'line'],
257
'lines': [
258
['indices_segments_count', 'segments', 'absolute']
259
]
260
},
261
'index_segments_memory_writer': {
259
- 'options': [None, 'Index Writer Memory Usage', 'MB', 'indices segments',
262
+ 'options': [None, 'Index Writer Memory Usage', 'MiB', 'indices segments',
263
'elastic.index_segments_memory_writer', 'area'],
264
'lines': [
265
['indices_segments_index_writer_memory_in_bytes', 'total', 'absolute', 1, 1048567]
266
]
267
},
268
'index_segments_memory': {
266
- 'options': [None, 'Indices Segments Memory Usage', 'MB', 'indices segments',
269
+ 'options': [None, 'Indices Segments Memory Usage', 'MiB', 'indices segments',
270
'elastic.index_segments_memory', 'stacked'],
271
'lines': [
272
['indices_segments_terms_memory_in_bytes', 'terms', 'absolute', 1, 1048567],
280
]
281
},
282
'jvm_mem_heap': {
280
- 'options': [None, 'JVM Heap Percentage Currently in Use', 'percent', 'memory usage and gc',
283
+ 'options': [None, 'JVM Heap Percentage Currently in Use', 'percentage', 'memory usage and gc',
284
'elastic.jvm_heap', 'area'],
285
'lines': [
286
['jvm_mem_heap_used_percent', 'inuse', 'absolute']
287
]
288
},
289
'jvm_mem_heap_bytes': {
287
- 'options': [None, 'JVM Heap Commit And Usage', 'MB', 'memory usage and gc',
290
+ 'options': [None, 'JVM Heap Commit And Usage', 'MiB', 'memory usage and gc',
291
'elastic.jvm_heap_bytes', 'area'],
292
'lines': [
293
['jvm_mem_heap_committed_in_bytes', 'commited', 'absolute', 1, 1048576],
295
]
296
},
297
'jvm_buffer_pool_count': {
295
- 'options': [None, 'JVM Buffers', 'count', 'memory usage and gc',
298
+ 'options': [None, 'JVM Buffers', 'pools', 'memory usage and gc',
299
'elastic.jvm_buffer_pool_count', 'line'],
300
'lines': [
301
['jvm_buffer_pools_direct_count', 'direct', 'absolute'],
303
]
304
},
305
'jvm_direct_buffers_memory': {
303
- 'options': [None, 'JVM Direct Buffers Memory', 'MB', 'memory usage and gc',
306
+ 'options': [None, 'JVM Direct Buffers Memory', 'MiB', 'memory usage and gc',
307
'elastic.jvm_direct_buffers_memory', 'area'],
308
'lines': [
309
['jvm_buffer_pools_direct_used_in_bytes', 'used', 'absolute', 1, 1048567],
311
]
312
},
313
'jvm_mapped_buffers_memory': {
311
- 'options': [None, 'JVM Mapped Buffers Memory', 'MB', 'memory usage and gc',
314
+ 'options': [None, 'JVM Mapped Buffers Memory', 'MiB', 'memory usage and gc',
315
'elastic.jvm_mapped_buffers_memory', 'area'],
316
'lines': [
317
['jvm_buffer_pools_mapped_used_in_bytes', 'used', 'absolute', 1, 1048567],
319
]
320
},
321
'jvm_gc_count': {
319
- 'options': [None, 'Garbage Collections', 'counts', 'memory usage and gc', 'elastic.gc_count', 'stacked'],
322
+ 'options': [None, 'Garbage Collections', 'events/s', 'memory usage and gc', 'elastic.gc_count', 'stacked'],
323
'lines': [
324
['jvm_gc_collectors_young_collection_count', 'young', 'incremental'],
325
['jvm_gc_collectors_old_collection_count', 'old', 'incremental']
326
]
327
},
328
'jvm_gc_time': {
326
- 'options': [None, 'Time Spent On Garbage Collections', 'ms', 'memory usage and gc',
329
+ 'options': [None, 'Time Spent On Garbage Collections', 'milliseconds', 'memory usage and gc',
330
'elastic.gc_time', 'stacked'],
331
'lines': [
332
['jvm_gc_collectors_young_collection_time_in_millis', 'young', 'incremental'],
356
]
357
},
358
'fielddata_cache': {
356
- 'options': [None, 'Fielddata Cache', 'MB', 'fielddata cache', 'elastic.fielddata_cache', 'line'],
359
+ 'options': [None, 'Fielddata Cache', 'MiB', 'fielddata cache', 'elastic.fielddata_cache', 'line'],
360
'lines': [
361
['indices_fielddata_memory_size_in_bytes', 'cache', 'absolute', 1, 1048576]
362
]
363
},
364
'fielddata_evictions_tripped': {
362
- 'options': [None, 'Fielddata Evictions And Circuit Breaker Tripped Count', 'number of events',
365
+ 'options': [None, 'Fielddata Evictions And Circuit Breaker Tripped Count', 'events/s',
366
'fielddata cache', 'elastic.fielddata_evictions_tripped', 'line'],
367
'lines': [
368
['indices_fielddata_evictions', 'evictions', 'incremental'],
370
]
371
},
372
'cluster_health_nodes': {
370
- 'options': [None, 'Nodes And Tasks Statistics', 'units', 'cluster health API',
373
+ 'options': [None, 'Nodes Statistics', 'nodes', 'cluster health API',
374
'elastic.cluster_health_nodes', 'stacked'],
375
'lines': [
376
['number_of_nodes', 'nodes', 'absolute'],
377
['number_of_data_nodes', 'data_nodes', 'absolute'],
378
+ ]
379
+ },
380
+ 'cluster_health_pending_tasks': {
381
+ 'options': [None, 'Tasks Statistics', 'tasks', 'cluster health API',
382
+ 'elastic.cluster_health_pending_tasks', 'line'],
383
+ 'lines': [
384
['number_of_pending_tasks', 'pending_tasks', 'absolute'],
385
+ ]
386
+ },
387
+ 'cluster_health_flight_fetch': {
388
+ 'options': [None, 'In Flight Fetches Statistics', 'fetches', 'cluster health API',
389
+ 'elastic.cluster_health_flight_fetch', 'line'],
390
+ 'lines': [
391
['number_of_in_flight_fetch', 'in_flight_fetch', 'absolute']
392
]
393
},
435
]
436
},
437
'cluster_stats_docs': {
423
- 'options': [None, 'Docs Statistics', 'count', 'cluster stats API',
438
+ 'options': [None, 'Docs Statistics', 'docs', 'cluster stats API',
439
'elastic.cluster_docs', 'line'],
440
'lines': [
441
['indices_docs_count', 'docs', 'absolute']
442
]
443
},
444
'cluster_stats_store': {
430
- 'options': [None, 'Store Statistics', 'MB', 'cluster stats API',
445
+ 'options': [None, 'Store Statistics', 'MiB', 'cluster stats API',
446
'elastic.cluster_store', 'line'],
447
'lines': [
448
['indices_store_size_in_bytes', 'size', 'absolute', 1, 1048567]
449
]
450
},
436
- 'cluster_stats_indices_shards': {
437
- 'options': [None, 'Indices And Shards Statistics', 'count', 'cluster stats API',
438
- 'elastic.cluster_indices_shards', 'stacked'],
451
+ 'cluster_stats_indices': {
452
+ 'options': [None, 'Indices Statistics', 'indices', 'cluster stats API',
453
+ 'elastic.cluster_indices', 'line'],
454
'lines': [
455
['indices_count', 'indices', 'absolute'],
456
+ ]
457
+ },
458
+ 'cluster_stats_shards_total': {
459
+ 'options': [None, 'Total Shards Statistics', 'shards', 'cluster stats API',
460
+ 'elastic.cluster_shards_total', 'line'],
461
+ 'lines': [
462
['indices_shards_total', 'shards', 'absolute']
463
]
464
},
471
]
472
},
473
'host_metrics_file_descriptors': {
453
- 'options': [None, 'Available File Descriptors In Percent', 'percent', 'host metrics',
474
+ 'options': [None, 'Available File Descriptors In Percent', 'percentage', 'host metrics',
475
'elastic.host_descriptors', 'area'],
476
'lines': [
477
['file_descriptors_used', 'used', 'absolute', 1, 10]
494
self.definitions = CHARTS
495
self.host = self.configuration.get('host')
496
self.port = self.configuration.get('port', 9200)
476
- self.url = '{scheme}://{host}:{port}'.format(scheme=self.configuration.get('scheme', 'http'),
477
- host=self.host,
478
- port=self.port)
497
+ self.url = '{scheme}://{host}:{port}'.format(
498
+ scheme=self.configuration.get('scheme', 'http'),
499
+ host=self.host,
500
+ port=self.port,
501
+ )
502
self.latency = dict()
503
self.methods = list()
504