diff --git a/docroot/index.php b/docroot/index.php
--- a/docroot/index.php
+++ b/docroot/index.php
@@ -1,5 +1,11 @@
 <?php

+// Sends metrics to a configurable New Relic account.
+if (extension_loaded('newrelic') && getenv("NEWRELIC_API_KEY")) {
+  $app_name = sprintf("%s - %s", getenv("AH_SITE_GROUP"), getenv("AH_SITE_ENVIRONMENT"));
+  newrelic_set_appname($app_name, getenv("NEWRELIC_API_KEY"), TRUE);
+}
+
 /**
  * @file
  * The PHP page that serves all page requests on a Drupal installation.