Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
8853e183
Commit
8853e183
authored
Mar 26, 2018
by
Matija Čupić
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make cluster usage datapoints more specific
parent
4478103d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
lib/gitlab/usage_data.rb
lib/gitlab/usage_data.rb
+6
-6
No files found.
lib/gitlab/usage_data.rb
View file @
8853e183
...
...
@@ -51,12 +51,12 @@ module Gitlab
clusters:
::
Clusters
::
Cluster
.
count
,
clusters_enabled:
::
Clusters
::
Cluster
.
enabled
.
count
,
clusters_disabled:
::
Clusters
::
Cluster
.
disabled
.
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
,
clusters_platforms_gke:
::
Clusters
::
Cluster
.
where
(
provider_type:
::
Clusters
::
Cluster
.
provider_types
[
:gcp
]).
enabled
.
select
{
|
cluster
|
cluster
.
status
==
::
Clusters
::
Providers
::
Gcp
.
state_machines
[
:status
].
states
[
:created
].
value
}.
count
,
clusters_platforms_user:
::
Clusters
::
Cluster
.
where
(
provider_type:
::
Clusters
::
Cluster
.
provider_types
[
:user
]).
enabled
.
count
,
clusters_applications_helm:
::
Clusters
::
Applications
::
Helm
.
where
(
status:
::
Clusters
::
Applications
::
Helm
.
state_machines
[
:status
].
states
[
:installed
].
value
).
count
,
clusters_applications_ingress:
::
Clusters
::
Applications
::
Ingress
.
where
(
status:
::
Clusters
::
Applications
::
Ingress
.
state_machines
[
:status
].
states
[
:installed
].
value
).
count
,
clusters_applications_prometheus:
::
Clusters
::
Applications
::
Prometheus
.
where
(
status:
::
Clusters
::
Applications
::
Prometheus
.
state_machines
[
:status
].
states
[
:installed
].
value
).
count
,
clusters_applications_runner:
::
Clusters
::
Applications
::
Runner
.
where
(
status:
::
Clusters
::
Applications
::
Runner
.
state_machines
[
:status
].
states
[
:installed
].
value
).
count
,
in_review_folder:
::
Environment
.
in_review_folder
.
count
,
groups:
Group
.
count
,
issues:
Issue
.
count
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment