Code

contrib/docker: add minimal example config file
authorMarc Fournier <marc.fournier@camptocamp.com>
Wed, 16 Nov 2016 09:00:44 +0000 (10:00 +0100)
committerMarc Fournier <marc.fournier@camptocamp.com>
Wed, 16 Nov 2016 09:00:44 +0000 (10:00 +0100)
contrib/docker/Dockerfile
contrib/docker/collectd.conf.d/sample.conf [new file with mode: 0644]

index ff0a0d5901e209fc63d184ae7ae734024624bb23..a691f2e63f46ec59cc128581ebda78bb511d1767 100644 (file)
@@ -16,8 +16,8 @@ RUN apt-get update \
  && apt-get clean \
  && rm -rf /var/lib/apt/lists/*
 
-RUN mkdir /etc/collectd/collectd.conf.d
 COPY collectd.conf /etc/collectd/collectd.conf
+COPY collectd.conf.d /etc/collectd/collectd.conf.d
 
 ENV LD_PRELOAD /usr/src/rootfs_prefix/rootfs_prefix.so
 
diff --git a/contrib/docker/collectd.conf.d/sample.conf b/contrib/docker/collectd.conf.d/sample.conf
new file mode 100644 (file)
index 0000000..cbd7ce1
--- /dev/null
@@ -0,0 +1,4 @@
+LoadPlugin cpu
+LoadPlugin memory
+LoadPlugin disk
+LoadPlugin df