Collectd for Joyent SmartOS featuring Giraffi metrics.
Setup
clone from repository
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/
modify config
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 --
add smf manifest
svccfg import /opt/collectd-giraffi/share/smf/colelctd-giraffi.xml
Start/Stop
svcadm enable colelctd-giraffi
svcadm disable colelctd-giraffi