From a30888b3403bfd22358c30d9b706e73545fa5031 Mon Sep 17 00:00:00 2001 From: Bryan Sullivan Date: Tue, 21 Nov 2017 18:55:32 -0800 Subject: Add more collectd data to influx/grafana JIRA: VES-2 Disable uuid for "node" mode Change-Id: I055db4f52eee7a61438a4e7e63740b42dc3f1777 Signed-off-by: Bryan Sullivan --- tools/ves-setup.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tools/ves-setup.sh') diff --git a/tools/ves-setup.sh b/tools/ves-setup.sh index 6e20bfd..7b6bddb 100644 --- a/tools/ves-setup.sh +++ b/tools/ves-setup.sh @@ -242,6 +242,7 @@ LoadPlugin csv StoreRates false +# TODO: complete the virt plugin install before enabling #LoadPlugin virt # # Connection "qemu:///system" @@ -275,7 +276,8 @@ LoadPlugin interface LoadPlugin memory LoadPlugin load LoadPlugin disk -LoadPlugin uuid +# TODO: how to set this option only to apply to VMs (not nodes) +#LoadPlugin uuid LoadPlugin write_kafka @@ -337,6 +339,8 @@ LoadPlugin match_regex EOF fi +# sudo sed -i -- "s/#Hostname \"localhost\"/Hostname \"$HOSTNAME\"/" /opt/collectd/etc/collectd.conf + if [[ $(grep -c $ves_hostname /etc/hosts) -eq 0 ]]; then log "add to /etc/hosts: $ves_kafka_host $ves_hostname" echo "$ves_kafka_host $ves_hostname" | sudo tee -a /etc/hosts -- cgit 1.2.3-korg