1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/docs/reference
Brian Goff 0e8e8f0f31 Add support for metrics plugins
Allows for a plugin type that can be used to scrape metrics.
This is useful because metrics are not neccessarily at a standard
location... `--metrics-addr` must be set, and must currently be a TCP
socket.
Even if metrics are done via a unix socket, there's no guarentee where
the socket may be located on the system, making bind-mounting such a
socket into a container difficult (and racey, failure-prone on daemon
restart).

Metrics plugins side-step this issue by always listening on a unix
socket and then bind-mounting that into a known path in the plugin
container.

Note there has been similar work in the past (and ultimately punted at
the time) for consistent access to the Docker API from within a
container.

Why not add metrics to the Docker API and just provide a plugin with
access to the Docker API? Certainly this can be useful, but gives a lot
of control/access to a plugin that may only need the metrics. We can
look at supporting API plugins separately for this reason.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2017-05-12 00:30:09 -04:00
..
commandline Add support for metrics plugins 2017-05-12 00:30:09 -04:00
builder.md Add Dockerfile reference docs for using ARG in FROM 2017-04-11 11:34:43 -04:00
glossary.md Merge pull request #29559 from mstanleyjones/define_bridge 2017-02-10 09:25:29 -08:00
index.md update incorrect url in docs 2017-01-26 12:57:45 +08:00
run.md Merge pull request #32939 from jvmatl/master 2017-05-09 09:50:21 +02:00