Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IA-1326] adding metric for async cluster creation failure #1081

Merged
merged 4 commits into from Oct 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -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))
Expand Down
Expand Up @@ -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.
Expand Down