JVM(jstat) custom metrics plugin for mackerel.io agent.
mackerel-plugin-jvm -javaname=<javaname> [-pidfile=</path/to/pidfile>] [-jstatpath=</path/to/jstat] [-jpspath=/path/to/jps] [-host=<host>] [-port=<port>]
- JVM 1.6 or higher
[plugin.metrics.jvm]
command = "/path/to/mackerel-plugin-jvm -javaname=NettyServer -jstatpath=/usr/bin/jstat -jpspath=/usr/bin/jps"
You can check javaname by jps command.
# jps
14203 NettyServer
14822 Jps
Please choose an arbitrary name as javaname
when you use pidfile
option.
It is just used as a prefix of graph label.