Simple OpenTSDB collector scripts for OS X. tcollector itself runs unmodified on OS X, once you install pgrep, which you can do with Homebrew.
brew install pgrep
These have been tested on OS X 10.7 Lion only. Your mileage may vary on older releases.
-
dfstat.py
, adapted from the version included in tcollector. It has the limitation that thefstype=
tag is missing from the generated metrics, because OS X's version ofdf
doesn't expose that information. -
vmstat.py
, handles the system memory usage exposed byvm_stat
-
iostat.py
creates metrics from the CPU usage, disk, and load averages produced byiostat
.
Apple seems to enjoy making the output of their stats utilities human
readable, but harder to machine parse. netstat -m
, netstat -mm
, and netstat -s
, for example.