Skip to content

collectors StatsCollector

Rob Smith edited this page Oct 29, 2012 · 7 revisions

StatsCollector

This is a slightly unusual 'collector'. It collects and uploads stats to a app engine instance run by Rob Smith. The stats collected are:

  • Per collector enabled or not
  • Per collector interval time
  • Global collector reload interval
  • Global handlers
  • Any custom collector set stats

These stats are stored anonymously (other then UUID), processed and the results are at http://diamond-stats.appspot.com/.

These values can help us know more about how Diamond is being used and can help us target development efforts in the future.

Requirements

You can install Smolt and run it once or run the following from a terminal

Linux:

  • mkdir /etc/smolt
  • cd /etc/smolt
  • cat /proc/sys/kernel/random/uuid > hw-uuid

Others:

Dependencies

  • /etc/smolt/hw-uuid
  • urllib
  • json/simplejson

Options - Generic Options

Setting Default Description Type
byte_unit byte Default numeric output(s) str
enabled False Enable collecting these metrics bool
measure_collector_time False Collect the collector run time in ms bool
url http://diamond-stats.appspot.com/submitstats The url to post stats to. str
uuidfile /etc/smolt/hw-uuid The path to the uuid file str

Example Output

__EXAMPLESHERE__
Clone this wiki locally