Docker (https://www.docker.com/) custom metrics plugin for mackerel.io agent.
mackerel-plugin-docker [-method=<method>] [-host=<host>] [-command=<docker>] [-tempfile=<tempfile>] [-name-format=<format>] [-label=<key>]-methodSpecify the method to collect stats, 'API' or 'File'. If not specified, a method is chosen based on docker API version. If the API version is under 1.17, 'File' is used. Otherwise, 'API' is used.-hostSocket path. This option is same as--hostoption of docker command. The default value isunix:///var/run/docker.sock.-commandPath to docker command. Without path, binary is searched in the directories named by the PATH environment variable. This is only used when method is 'File'. The default value isdocker.-tempfileTemporary file stored metric values for calculating differentials.-name-formatSet the name format from name, name_id, id, image, image_id, image_name or label (default "name_id")-labelUse the value of the key as name in case that name-format is label.
[plugin.metrics.docker]
command = "/path/to/mackerel-plugin-docker -method API"