Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatija Čupić <matteeyah@gmail.com>2018-03-22 02:41:18 +0300
committerMatija Čupić <matteeyah@gmail.com>2018-03-22 02:44:06 +0300
commit0bf79bf12eb9407b094dbc1acbd777c7049c33ea (patch)
treec78e1d440b08004acab9ce9dd41968e9ba6015e6 /lib/gitlab/usage_data.rb
parent03bbd847deb16330d0e35ce662c282b539eef9eb (diff)
Add additional cluster usage metrics
Diffstat (limited to 'lib/gitlab/usage_data.rb')
-rw-r--r--lib/gitlab/usage_data.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/gitlab/usage_data.rb b/lib/gitlab/usage_data.rb
index 37d3512990e..8a6f08ddccd 100644
--- a/lib/gitlab/usage_data.rb
+++ b/lib/gitlab/usage_data.rb
@@ -50,6 +50,12 @@ module Gitlab
clusters: ::Clusters::Cluster.count,
clusters_enabled: ::Clusters::Cluster.enabled.count,
clusters_disabled: ::Clusters::Cluster.disabled.count,
+ clusters_gke: ::Clusters::Cluster.where(provider_type: ::Clusters::Cluster.provider_types[:gcp]).count,
+ clusters_user: ::Clusters::Cluster.where(provider_type: ::Clusters::Cluster.provider_types[:user]).count,
+ clusters_helm: ::Clusters::Applications::Helm.count,
+ clusters_ingress: ::Clusters::Applications::Ingress.count,
+ clusters_prometheus: ::Clusters::Applications::Prometheus.count,
+ clusters_runner: ::Clusters::Applications::Runner.count,
in_review_folder: ::Environment.in_review_folder.count,
groups: Group.count,
issues: Issue.count,