summaryrefslogtreecommitdiffstats
path: root/src/collectd/Makefile
diff options
context:
space:
mode:
authorTaras Chornyi <tarasx.chornyi@intel.com>2017-08-21 17:09:17 +0300
committerTaras Chornyi <tarasx.chornyi@intel.com>2017-11-17 14:16:20 +0000
commit810dac49e96193b447d231d25d6522eef2e62d02 (patch)
tree152d3f81194865e033ee6f114c8177c8b7aa806a /src/collectd/Makefile
parentecf1ba1c5000718d1f0d90270af33039b488c835 (diff)
docker: Added docker container for running collectd
Added InfluxDB and Grafana containers. Change-Id: Ifa46fac03c0175267d9cbffed5354193ad182733 Signed-off-by: Taras Chornyi <tarasx.chornyi@intel.com>
Diffstat (limited to 'src/collectd/Makefile')
-rw-r--r--src/collectd/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/collectd/Makefile b/src/collectd/Makefile
index e09aca3b..decb8e84 100644
--- a/src/collectd/Makefile
+++ b/src/collectd/Makefile
@@ -69,12 +69,14 @@ force_make: $(WORK_DIR)/Makefile
force_install:
$(AT)$(MAKE) -C $(WORK_DIR) install
+ifndef DOCKER
$(AT)cp $(WORK_DIR)/contrib/systemd.collectd.service /etc/systemd/system/
$(AT)mv /etc/systemd/system/systemd.collectd.service /etc/systemd/system/collectd.service
$(AT)sed -i -e 's/ExecStart=\/usr\/sbin\/collectd/ExecStart=\/opt\/collectd\/sbin\/collectd/g' /etc/systemd/system/collectd.service
$(AT)sed -i -e 's/CapabilityBoundingSet=/CapabilityBoundingSet=CAP_SETUID CAP_SETGID CAP_SYS_RAWIO CAP_SYS_ADMIN/g' /etc/systemd/system/collectd.service
$(AT)sed -i -e 's|Environment=\(.*\)|Environment=XDG_CACHE_HOME='$(XDG_CACHE_HOME_DIR)' \1|g' /etc/systemd/system/collectd.service
$(AT)systemctl daemon-reload
+endif
$(AT)sudo ./ovs_pmd_stats_config.sh
$(AT)sudo ./snmp_mib_config.sh
$(AT)sudo ./include_config.sh