Add in simple metrics for acloud.
Right now we record when a user calls acloud and their git config
username (only if they're a googler).
Bug: 118312364
Test: acloud create registered an uptick in usage
Change-Id: If3af3b0644bf5b19f6400400254cf0b270a4d466
diff --git a/public/acloud_main.py b/public/acloud_main.py
index e320ea6..d449cea 100644
--- a/public/acloud_main.py
+++ b/public/acloud_main.py
@@ -57,17 +57,18 @@
OAUTH2_LOGGER.addHandler(logging.FileHandler("/dev/null"))
# pylint: disable=wrong-import-position
+from acloud.create import create
+from acloud.create import create_args
+from acloud.delete import delete
+from acloud.delete import delete_args
from acloud.internal import constants
+from acloud.metrics import metrics
from acloud.public import acloud_common
from acloud.public import config
from acloud.public import device_driver
from acloud.public import errors
from acloud.public.actions import create_cuttlefish_action
from acloud.public.actions import create_goldfish_action
-from acloud.create import create
-from acloud.create import create_args
-from acloud.delete import delete
-from acloud.delete import delete_args
from acloud.setup import setup
from acloud.setup import setup_args
@@ -390,6 +391,7 @@
# Check access.
# device_driver.CheckAccess(cfg)
+ metrics.LogUsage()
report = None
if (args.which == create_args.CMD_CREATE
and args.avd_type == constants.TYPE_GCE):