Rename cluster datapoint names to be more specific

This commit is contained in:
Matija Čupić 2018-03-26 21:54:13 +02:00
parent e46950f284
commit 4478103d99
No known key found for this signature in database
GPG key ID: 4BAF84FFACD2E5DE
2 changed files with 12 additions and 12 deletions

View file

@ -51,12 +51,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,
clusters_platforms_gke: ::Clusters::Cluster.where(provider_type: ::Clusters::Cluster.provider_types[:gcp]).count,
clusters_platforms_user: ::Clusters::Cluster.where(provider_type: ::Clusters::Cluster.provider_types[:user]).count,
clusters_applications_helm: ::Clusters::Applications::Helm.count,
clusters_applications_ingress: ::Clusters::Applications::Ingress.count,
clusters_applications_prometheus: ::Clusters::Applications::Prometheus.count,
clusters_applications_runner: ::Clusters::Applications::Runner.count,
in_review_folder: ::Environment.in_review_folder.count,
groups: Group.count,
issues: Issue.count,

View file

@ -64,12 +64,12 @@ describe Gitlab::UsageData do
clusters
clusters_enabled
clusters_disabled
clusters_gke
clusters_user
clusters_helm
clusters_ingress
clusters_prometheus
clusters_runner
clusters_platforms_gke
clusters_platforms_user
clusters_applications_helm
clusters_applications_ingress
clusters_applications_prometheus
clusters_applications_runner
in_review_folder
groups
issues