summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: da6722c)
raw | patch | inline | side by side (parent: da6722c)
author | Marc Fournier <marc.fournier@camptocamp.com> | |
Wed, 16 Nov 2016 09:10:10 +0000 (10:10 +0100) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Wed, 16 Nov 2016 09:10:10 +0000 (10:10 +0100) |
contrib/README | patch | blob | history |
diff --git a/contrib/README b/contrib/README
index 897d61978c32532c535d635cf96c1bdac781007e..e5c7e36acb4e503ae7f10d9dc32cbbccb5192d95 100644 (file)
--- a/contrib/README
+++ b/contrib/README
datadir: "/var/lib/collectd/rrd/"
libdir: "/usr/lib/collectd/"
+docker/
+-------
+Sample docker setup using an LD_PRELOAD wrapper to redirect system calls
+accessing /proc and /sys to prefixed bind-mounts inside the container.
+
+Drop your collectd configuration snippets in the
+contrib/docker/collectd.conf.d/ directory, and build an image including them:
+ $ docker build -t my_collectd ./contrib/docker/
+
+Then run it with the required bind-mounts:
+ $ docker run -it --rm \
+ -v /proc:/rootfs/proc:ro -v /sys:/rootfs/sys:ro \
+ --name collectd my_collectd
+ $ docker exec -it collectd collectdctl listval
+
exec-munin.px
-------------
Script to be used with the exec-plugin (see collectd-exec(5) for details)