diff --git a/http/src/main/scala/org/broadinstitute/dsde/workbench/leonardo/monitor/ClusterMonitorActor.scala b/http/src/main/scala/org/broadinstitute/dsde/workbench/leonardo/monitor/ClusterMonitorActor.scala index 9d5bfb0d976..75d0caa8967 100644 --- a/http/src/main/scala/org/broadinstitute/dsde/workbench/leonardo/monitor/ClusterMonitorActor.scala +++ b/http/src/main/scala/org/broadinstitute/dsde/workbench/leonardo/monitor/ClusterMonitorActor.scala @@ -220,6 +220,8 @@ class ClusterMonitorActor(val cluster: Cluster, for { // update the cluster status to Error _ <- dbRef.inTransaction { _.clusterQuery.updateClusterStatus(cluster.id, ClusterStatus.Error) } + _ <- Metrics.newRelic.incrementCounterFuture(s"AsyncClusterCreationFailure/${errorDetails.code}") + // Remove the Dataproc Worker IAM role for the pet service account // Only happens if the cluster was created with the pet service account. } yield ShutdownActor(RemoveFromList(cluster)) diff --git a/http/src/main/scala/org/broadinstitute/dsde/workbench/leonardo/service/LeonardoService.scala b/http/src/main/scala/org/broadinstitute/dsde/workbench/leonardo/service/LeonardoService.scala index 574ea4370e9..119ed0fcc17 100644 --- a/http/src/main/scala/org/broadinstitute/dsde/workbench/leonardo/service/LeonardoService.scala +++ b/http/src/main/scala/org/broadinstitute/dsde/workbench/leonardo/service/LeonardoService.scala @@ -301,7 +301,7 @@ class LeonardoService(protected val dataprocConfig: DataprocConfig, s"'${updatedCluster.clusterName}' on Google project '${updatedCluster.googleProject}', " + s"and updated the database record accordingly. Will monitor the cluster creation process...") case Failure(e) => - logger.error(s"[$traceId] Failed the asynchronous portion of the creation of cluster '$clusterName' " + + logger.error(s"[$traceId] Failed the google call portion of the creation of cluster '$clusterName' " + s"on Google project '$googleProject'.", e) // We also want to record the error in database for future reference.