Add a library for monitoring.

Change-Id: I64c3d143186be938042c12e2455bdb034d3bcba8
Reviewed-on: https://chromium-review.googlesource.com/1079639
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
Reviewed-by: Aaron Gable <agable@chromium.org>
diff --git a/upload_metrics.py b/upload_metrics.py
new file mode 100644
index 0000000..4be5b23
--- /dev/null
+++ b/upload_metrics.py
@@ -0,0 +1,24 @@
+#!/usr/bin/env python
+# Copyright (c) 2018 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import sys
+import urllib2
+
+
+APP_URL = 'https://cit-cli-metrics.appspot.com'
+
+
+def main():
+  metrics = raw_input()
+  try:
+    urllib2.urlopen(APP_URL + '/upload', metrics)
+  except urllib2.HTTPError:
+    pass
+
+  return 0
+
+
+if __name__ == '__main__':
+  sys.exit(main())