To collect useful system metrics in Hosted Graphite such as System CPU, User CPU, Load Average, and Physical Memory we recommend a great python daemon called Diamond. Diamond runs on your server, and intermittently sends these useful system metrics to Graphite. Here’s a quick primer on how to configure it.
# Handlers for published metrics.
handlers = diamond.handler.hostedgraphite.HostedGraphiteHandler
apikey = YOUR_API_KEY
timeout = 15
batch = 1
interval = 30
[[NetworkCollector]]
enabled = True
[[MySQLCollector]]
enabled = True
hosts = username:pass@localhost:3306/mysql,
master = True
innodb = True
Diamond should now be configured to send data to Hosted Graphite and it will appear under the ‘servers’ entry in your tree of metrics.