diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-03-22 02:41:18 +0300 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-03-22 02:44:06 +0300 |
commit | 0bf79bf12eb9407b094dbc1acbd777c7049c33ea (patch) | |
tree | c78e1d440b08004acab9ce9dd41968e9ba6015e6 /lib/gitlab/usage_data.rb | |
parent | 03bbd847deb16330d0e35ce662c282b539eef9eb (diff) |
Add additional cluster usage metrics
Diffstat (limited to 'lib/gitlab/usage_data.rb')
-rw-r--r-- | lib/gitlab/usage_data.rb | 6 |
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, |