summaryrefslogtreecommitdiff
path: root/lib
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 /lib
parenta97261f2184872cffe12b6634d65cfd78581c1b1 (diff)
downloadgitlab-ce-ff2de2f179bb7448e286ef4be796082bfd3c0f5c.tar.gz
Adding additional usage metrics for Release to weekly ping
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/usage_data.rb2
1 files changed, 2 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),