git clone https://github.com/giraffi/collectd-giraffi-smartos.git /opt/collectd-giraffi -b master --depth=0
cp -n /opt/collectd-giraffi/usr/lib/librabbitmq.so* /opt/local/lib/
cp /opt/collectd-giraffi/etc/collectd.conf.sample /opt/collectd-giraffi/etc/collectd.conf
Replace account informations.
-- snip --
Host "GIRAFFI_ENDPOINT"
Port 5672
VHost "/"
User "GIRAFFI_USER_ID"
Password "GIRAFFI_API_KEY"
Exchange "collectd.json.topic"
RoutingKey "collectd.GIRAFFI_USER_ID"
Persistent false
StoreRates false
Format "JSON"
-- snip --
svccfg import /opt/collectd-giraffi/share/smf/colelctd-giraffi.xml
svcadm enable colelctd-giraffi
svcadm disable colelctd-giraffi