Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Munin ElasticSearch plugins

NAME

elasticsearch_jvm - A munin plugin that collects stats from the JVM of your elasticsearch instances

APPLICABLE SYSTEMS

ElasticSearch

CONFIGURATION

None

BUGS

None known so far. If you find any, let me know.

AUTHOR

Tomas Doran (t0m) - c<< <bobtfish@bobtfish.net> >>

NAME

elasticsearch_jvm - A munin plugin that collects stats from the JVM of your elasticsearch instances

APPLICABLE SYSTEMS

ElasticSearch

CONFIGURATION

None

BUGS

None known so far. If you find any, let me know.

AUTHOR

Tomas Doran (t0m) - c<< <bobtfish@bobtfish.net> >>

NAME

elasticsearch_jvm - A munin plugin that collects stats from the JVM of your elasticsearch instances

APPLICABLE SYSTEMS

ElasticSearch

CONFIGURATION

None

BUGS

None known so far. If you find any, let me know.

AUTHOR

Tomas Doran (t0m) - c<< <bobtfish@bobtfish.net> >>

NAME

elasticsearch_jvm - A munin plugin that collects stats from the JVM of your elasticsearch instances

APPLICABLE SYSTEMS

ElasticSearch

CONFIGURATION

None

BUGS

None known so far. If you find any, let me know.

AUTHOR

Tomas Doran (t0m) - c<< <bobtfish@bobtfish.net> >>

NAME

elasticsearch_jvm - A munin plugin that collects stats from the JVM of your elasticsearch instances

APPLICABLE SYSTEMS

ElasticSearch

CONFIGURATION

None

BUGS

None known so far. If you find any, let me know.

AUTHOR

Tomas Doran (t0m) - c<< <bobtfish@bobtfish.net> >>

NAME

elasticsearch_jvm - A munin plugin that collects stats from the JVM of your elasticsearch instances

APPLICABLE SYSTEMS

ElasticSearch

CONFIGURATION

None

BUGS

None known so far. If you find any, let me know.

AUTHOR

Tomas Doran (t0m) - c<< <bobtfish@bobtfish.net> >>

#!/bin/sh
# -*- sh -*-
. $MUNIN_LIBDIR/plugins/plugin.sh
if [ "$1" = "config" ]; then
echo 'graph_title ElasticSearch open files'
echo 'graph_args --base 1000 -l 0'
echo 'graph_vlabel number of open files'
echo 'graph_category system'
echo 'used.label open files'
echo 'used.type GAUGE'
echo 'used.info The number of currently open files.'
echo 'max.label max open files'
echo 'max.type GAUGE'
exit 0
fi
# while true; do su -c 'ls /proc/$(pidof whatever)/fd' elasticsearch |wc -l |nc -l -q0 localhost 9998; done
PID=`ps -u elasticsearch -opid,comm | grep java | awk '{ print $1 }'`
VALUE=`ls /proc/$PID/fd/ | wc | awk '{ print $1 }'`
echo "used.value $VALUE"
echo "max.value 65000"
#!/bin/sh
# -*- sh -*-
# AUTHOR: Moritz Onken <onken@netcubed.de>
. $MUNIN_LIBDIR/plugins/plugin.sh
if [ "$1" = "config" ]; then
echo 'graph_title ElasticSearch translog size'
echo 'graph_args --base 1024 -l 0'
echo 'graph_vlabel size of translogs'
echo 'graph_category system'
echo 'size.label size of translog files'
echo 'size.type GAUGE'
echo 'number.label number of translog files'
echo 'number.type GAUGE'
exit 0
fi
NUMBER=`ls /srv/elasticsearch/metacpan_v1/nodes/0/indices/*/*/translog/* | wc -l`
SIZE=`du -s /srv/elasticsearch/metacpan_v1/nodes/0/indices/*/*/translog/* | awk '{sum+=$1};END{print sum}'`
echo "number.value $NUMBER"
echo "size.value $SIZE"

hello i have this probleme

user@server.com plugins # munin-run elasticsearch_
Can't exec "/etc/munin/plugins/elasticsearch_": No such file or directory at /usr/share/perl5/Munin/Node/Service.pm line 263.

FATAL: Failed to exec.

->content of line 263:

my @command = grep defined, _service_command($self->{servicedir}, $service, $arg);
print STDERR "# About to run '", join (' ', @command), "'\n"
    if $config->{DEBUG};

exec @command;

thank you in advance

Perhaps it's too late but you must specify which one you want to run:
ex: munin-run elasticsearch_translog_size

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment