fracai
Guru
- Joined
- Aug 22, 2012
- Messages
- 1,212
I put a ticket in for adding Librato support to the CollectD process a while back. It's not a high priority ticket and I don't expect to see it filled any time soon, but I still thought it'd be interesting to get the stats that FreeNAS tracks into Librato.
Librato is a metrics tracking service that provides really nice looking graphs and really flexible and detailed methods for manipulating and correlating data. You can pay to get access to more features and longer retention time, but there is a free tier that should cover most hobbyist uses.
Anyway, I put together a script that parses the RRD files that CollectD generates and uploads the stats to Librato. Not too long ago, I also added CPU and drive temperatures as collected from proc and smartctl.
The script, an example configuration, and an rc script are available at BitBucket and GitHub.
You'll also need to install PyRRD (one way is with pip) and rrdtool (available in the ports tree), so that means you're gonna be working in a jail. I suppose it would be possible to get everything running directly by just getting PyRRD installed somewhere; all the other modules and rrdtool are available in the base OS. But, the jail is what I'm using right now; I already have a services jail running, so what's one more task?
Bug reports, pull requests, comments, and criticism are welcome. Hopefully someone else finds this useful.
I've attached a screenshot of my dashboard at Librato.

Librato is a metrics tracking service that provides really nice looking graphs and really flexible and detailed methods for manipulating and correlating data. You can pay to get access to more features and longer retention time, but there is a free tier that should cover most hobbyist uses.
Anyway, I put together a script that parses the RRD files that CollectD generates and uploads the stats to Librato. Not too long ago, I also added CPU and drive temperatures as collected from proc and smartctl.
The script, an example configuration, and an rc script are available at BitBucket and GitHub.
You'll also need to install PyRRD (one way is with pip) and rrdtool (available in the ports tree), so that means you're gonna be working in a jail. I suppose it would be possible to get everything running directly by just getting PyRRD installed somewhere; all the other modules and rrdtool are available in the base OS. But, the jail is what I'm using right now; I already have a services jail running, so what's one more task?
Bug reports, pull requests, comments, and criticism are welcome. Hopefully someone else finds this useful.
I've attached a screenshot of my dashboard at Librato.

Last edited: