summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarby Frey <dfrey@gitlab.com>2019-03-07 17:08:29 +0000
committerRémy Coutable <remy@rymai.me>2019-03-07 17:08:29 +0000
commitff2de2f179bb7448e286ef4be796082bfd3c0f5c (patch)
tree8202fc1eff66703fdc20bd2bc055214e82febb54
parenta97261f2184872cffe12b6634d65cfd78581c1b1 (diff)
downloadgitlab-ce-ff2de2f179bb7448e286ef4be796082bfd3c0f5c.tar.gz
Adding additional usage metrics for Release to weekly ping
-rw-r--r--lib/gitlab/usage_data.rb2
-rw-r--r--spec/lib/gitlab/usage_data_spec.rb2
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/usage_data.rb b/lib/gitlab/usage_data.rb
index 0101ccc046a..f9c9ea4f936 100644
--- a/lib/gitlab/usage_data.rb
+++ b/lib/gitlab/usage_data.rb
@@ -54,6 +54,8 @@ module Gitlab
auto_devops_disabled: count(::ProjectAutoDevops.disabled),
deploy_keys: count(DeployKey),
deployments: count(Deployment),
+ successful_deployments: count(Deployment.success),
+ failed_deployments: count(Deployment.failed),
environments: count(::Environment),
clusters: count(::Clusters::Cluster),
clusters_enabled: count(::Clusters::Cluster.enabled),
diff --git a/spec/lib/gitlab/usage_data_spec.rb b/spec/lib/gitlab/usage_data_spec.rb
index d3eae80cc56..cd9e4d48cd1 100644
--- a/spec/lib/gitlab/usage_data_spec.rb
+++ b/spec/lib/gitlab/usage_data_spec.rb
@@ -79,6 +79,8 @@ describe Gitlab::UsageData do
auto_devops_disabled
deploy_keys
deployments
+ successful_deployments
+ failed_deployments
environments
clusters
clusters_enabled