[autotest] Add a library wrapping around statsd for ease of use.
There's a few issues with statsd, such that having a nice wrapper around
it would be convenient:
* Stats logged by a locally run testing setup and stats logged by prod
would by default go into the same "bucket" on graphite.
* Use of |sendto()| involves resolving STATSD_HOST, which would happen
very frequently.
* statsd logs a large amount of information, which one could just as
easily see on chromeos-stats/
* A connection would need to be setup in each place where one wants to
send stats.
BUG=chromium-os:36682
TEST=Added a tick stat to the scheduler, it appears on chromeos-stats/
under stats/timers/milleral/scheduler/tick
Change-Id: I4572ee6fde5e14ab2ba0dfb3d776268849519cd2
Reviewed-on: https://gerrit.chromium.org/gerrit/45138
Tested-by: Alex Miller <milleral@chromium.org>
Reviewed-by: Simran Basi <sbasi@chromium.org>
Commit-Queue: Alex Miller <milleral@chromium.org>
diff --git a/global_config.ini b/global_config.ini
index 278bac2..992e3ec 100644
--- a/global_config.ini
+++ b/global_config.ini
@@ -176,6 +176,8 @@
# carbon server feeding Graphite (chromeos-stats.corp.google.com)
CARBON_SERVER: chromeos-stats.corp.google.com
CARBON_PORT: 2003
+STATSD_SERVER: chromeos-stats.corp.google.com
+STATSD_PORT: 8125
[BUG_REPORTING]
gs_domain: https://storage.cloud.google.com/