Skip to content

collectors StatsCollector

Rob Smith edited this page Sep 16, 2014 · 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
metrics_blacklist None Regex to match metrics to block. Mutually exclusive with metrics_whitelist NoneType
metrics_whitelist None Regex to match metrics to transmit. Mutually exclusive with metrics_blacklist NoneType
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__

This file was generated from the python source

Please edit the source to make changes

Clone this wiki locally