App-ElasticSearch-Utilities
view release on metacpan or search on metacpan
scripts/es-status.pl view on Meta::CPAN
my $node = $stats->{nodes}{$node_id};
output({kv=>1,color=>"cyan"}, "name", $node->{name});
output({kv=>1}, "index_size", $node->{indices}{store}{size} );
verbose({kv=>1}, "index_size_bytes", $node->{indices}{store}{size_in_bytes} );
verbose({kv=>1}, "docs", $node->{indices}{docs}{count} );
output({kv=>1}, "open_fd", $node->{process}{open_file_descriptors} );
# JVM Stats
output({kv=>1}, "jvm", '');
# Threads
output({indent=>1,kv=>1}, "threads_current", $node->{jvm}{threads}{count});
output({indent=>1,kv=>1}, "threads_peak", $node->{jvm}{threads}{peak_count});
# Memory
output({indent=>1,kv=>1}, "mem", '');
output({indent=>2,kv=>1,color=>"yellow"}, "heap_used", $node->{jvm}{mem}{heap_used});
verbose({indent=>2,kv=>1,color=>"yellow"}, "heap_used_bytes", $node->{jvm}{mem}{heap_used_in_bytes});
output({indent=>2,kv=>1}, "heap_committed", $node->{jvm}{mem}{heap_committed});
verbose({indent=>2,kv=>1}, "heap_committed_bytes", $node->{jvm}{mem}{heap_committed_in_bytes});
# GC
output({indent=>1,kv=>1}, "gc", '');
# GC Details
foreach my $collector ( keys %{ $node->{jvm}{gc}{collectors} } ) {
( run in 0.256 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )