Skip to content
Snippets Groups Projects
Verified Commit 0bf79bf1 authored by Matija Čupić's avatar Matija Čupić
Browse files

Add additional cluster usage metrics

parent 03bbd847
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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,
Loading
Loading
Loading
Loading
@@ -64,6 +64,12 @@ describe Gitlab::UsageData do
clusters
clusters_enabled
clusters_disabled
clusters_gke
clusters_user
clusters_helm
clusters_ingress
clusters_prometheus
clusters_runner
in_review_folder
groups
issues
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment