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
Léo-Paul Géneau
gitlab-ce
Commits
0bf79bf1
Commit
0bf79bf1
authored
Mar 22, 2018
by
Matija Čupić
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add additional cluster usage metrics
parent
03bbd847
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
lib/gitlab/usage_data.rb
lib/gitlab/usage_data.rb
+6
-0
spec/lib/gitlab/usage_data_spec.rb
spec/lib/gitlab/usage_data_spec.rb
+6
-0
No files found.
lib/gitlab/usage_data.rb
View file @
0bf79bf1
...
...
@@ -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
,
...
...
spec/lib/gitlab/usage_data_spec.rb
View file @
0bf79bf1
...
...
@@ -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
...
...
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