4 INSTALL_HOME=/opt/collectd-ceilometer
11 CEILOMETER_URL_TYPE=${CEILOMETER_URL_TYPE:-internalURL}
12 CEILOMETER_TIMEOUT=${CEILOMETER_TIMEOUT:-1000}
14 apt-get install -y collectd
16 rm -rf $INSTALL_HOME; mkdir -p $INSTALL_HOME
18 curl http://$HOST:8080/plugins/fuel-plugin-collectd-ceilometer-0.9/repositories/ubuntu/collectd-ceilometer.tgz | tar xzvf -
20 cat << EOF > /etc/collectd/collectd.conf.d/collectd-ceilometer-plugin.conf
26 ModulePath "$INSTALL_HOME"
29 Import "collectd_ceilometer.plugin"
31 <Module "collectd_ceilometer.plugin">
39 # Service endpoint addresses
40 OS_AUTH_URL "$OS_AUTH_URL"
44 CEILOMETER_URL_TYPE "$CEILOMETER_URL_TYPE"
46 # Ceilometer timeout in ms
47 CEILOMETER_TIMEOUT "$CEILOMETER_TIMEOUT"
49 # # Ceilometer user creds
50 OS_USERNAME "$OS_USERNAME"
51 OS_PASSWORD "$OS_PASSWORD"
52 OS_TENANT_NAME "services"
58 service collectd restart