Jolokia custom metrics plugin for mackerel.io agent
This repository releases an artifact to Github Releases, which satisfy the format for mkr plugin installer.
mackerel-plugin-jolokia [--host=<host>] [--port=<port>] [--metric-key-prefix=<prefix>] [--exclude-jvm-metrics] [--integration=<integration>] [--custom-metrics-file=<custom-metrics-file>] [--tempfile=<tempfile>]
host
- The host name or IP address. By default this islocalhost
.port
- The access port. By default this is8773
.metric-key-prefix
- The metrics key prefix.exclude-jvm-metrics
- Exclude default JVM metrics. By default is collect JVM metrics.integration
- The integration name. Here supported integrations list.custom-metrics-file
- The custom metrics file. The supported file extension is yaml or yml. How to custom metrics.tempfile
- The temp file name.
Supported integrations list.
Edit the custom metrics file, in the folder.
Here example custom metrics file.
A custom metrics can specify graphs
and metrics
.
graphs
represents one graph and includes some metrics
s which represent each line.
graphs
includes followings:
key
: Key for the graph.label
: Label for the graph.unit
: Unit for lines,float
,integer
,percentage
,bytes
,bytes/sec
,iops
can be specified.metrics
: Array ofmetrics
which represents each line.
metics
includes followings:
name
: Key of the linelabel
: Label of the linediff
: Ifdiff
is true, differential is used as value.stacked
: Ifstacked
is true, the line is stacked.scale
: Each value is multiplied byscale
.match
: Ifmatch
is true, match with a combination of graph definitions and metric name.
jmx
includes followings:
mbean
: MBean name.attribute
: Array ofattribute
which represents each line.scope
: Array of the scope list.
attribute
includes followings:
name
: Attribute name.prefix
: When it is not empty character, Add prefix for metrics name.
mkr plugin install y-kuno/mackerel-plugin-jolokia
- Or download binary in Github Releases
[plugin.metrics.jolokia]
command = "/path/to/mackerel-plugin-jolokia"