From 90bced630a4de3521582492e65be97d43efe3fec Mon Sep 17 00:00:00 2001 From: Daniel Turner Date: Thu, 24 Oct 2019 09:20:26 -0700 Subject: [PATCH] Use correct statsd --- lib/krane/global_deploy_task.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/krane/global_deploy_task.rb b/lib/krane/global_deploy_task.rb index 1e56e102c..611cd5568 100644 --- a/lib/krane/global_deploy_task.rb +++ b/lib/krane/global_deploy_task.rb @@ -74,27 +74,27 @@ def run!(verify_result: true, prune: true) logger.phase_heading("Deploying all resources") deploy!(resources, verify_result, prune) - StatsD.event("Deployment succeeded", + KubernetesDeploy::StatsD.event("Deployment succeeded", "Successfully deployed all resources to #{context}", alert_type: "success", tags: statsd_tags << "status:success") - StatsD.distribution('all_resources.duration', KubernetesDeploy::StatsD.duration(start), + KubernetesDeploy::StatsD.distribution('all_resources.duration', KubernetesDeploy::StatsD.duration(start), tags: statsd_tags << "status:success") logger.print_summary(:success) rescue KubernetesDeploy::DeploymentTimeoutError logger.print_summary(:timed_out) - StatsD.event("Deployment timed out", + KubernetesDeploy::StatsD.event("Deployment timed out", "One or more resources failed to deploy to #{context} in time", alert_type: "error", tags: statsd_tags << "status:timeout") - StatsD.distribution('all_resources.duration', KubernetesDeploy::StatsD.duration(start), + KubernetesDeploy::StatsD.distribution('all_resources.duration', KubernetesDeploy::StatsD.duration(start), tags: statsd_tags << "status:timeout") raise rescue KubernetesDeploy::FatalDeploymentError => error logger.summary.add_action(error.message) if error.message != error.class.to_s logger.print_summary(:failure) - StatsD.event("Deployment failed", + KubernetesDeploy::StatsD.event("Deployment failed", "One or more resources failed to deploy to #{context}", alert_type: "error", tags: statsd_tags << "status:failed") - StatsD.distribution('all_resources.duration', KubernetesDeploy::StatsD.duration(start), + KubernetesDeploy::StatsD.distribution('all_resources.duration', KubernetesDeploy::StatsD.duration(start), tags: statsd_tags << "status:failed") raise end