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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
886e6f49
Commit
886e6f49
authored
Dec 20, 2018
by
Logan King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tracing to usage stats
parent
8de2516b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletion
+10
-1
ee/changelogs/unreleased/8318-add-tracing-usage-stats.yml
ee/changelogs/unreleased/8318-add-tracing-usage-stats.yml
+5
-0
ee/lib/ee/gitlab/usage_data.rb
ee/lib/ee/gitlab/usage_data.rb
+2
-1
ee/spec/lib/gitlab/usage_data_spec.rb
ee/spec/lib/gitlab/usage_data_spec.rb
+3
-0
No files found.
ee/changelogs/unreleased/8318-add-tracing-usage-stats.yml
0 → 100644
View file @
886e6f49
---
title
:
Add count of projects with tracing enabled to usage ping data
merge_request
:
8940
author
:
type
:
other
ee/lib/ee/gitlab/usage_data.rb
View file @
886e6f49
...
...
@@ -101,7 +101,8 @@ module EE
projects_reporting_ci_cd_back_to_github:
count
(
::
GithubService
.
without_defaults
.
active
),
projects_mirrored_with_pipelines_enabled:
projects_mirrored_with_pipelines_enabled
,
projects_with_prometheus_alerts:
count
(
PrometheusAlert
.
distinct_projects
),
projects_with_packages:
count
(
::
Packages
::
Package
.
select
(
'distinct project_id'
))
projects_with_packages:
count
(
::
Packages
::
Package
.
select
(
'distinct project_id'
)),
projects_with_tracing_enabled:
count
(
ProjectTracingSetting
)
}).
merge
(
service_desk_counts
).
merge
(
security_products_usage
)
usage_data
...
...
ee/spec/lib/gitlab/usage_data_spec.rb
View file @
886e6f49
...
...
@@ -22,6 +22,8 @@ describe Gitlab::UsageData do
create
(
:package
,
project:
projects
[
0
])
create
(
:package
,
project:
projects
[
0
])
create
(
:package
,
project:
projects
[
1
])
create
(
:project_tracing_setting
,
project:
projects
[
0
])
end
subject
{
described_class
.
data
}
...
...
@@ -64,6 +66,7 @@ describe Gitlab::UsageData do
sast_jobs
projects_with_prometheus_alerts
projects_with_packages
projects_with_tracing_enabled
)
)
expect
(
count_data
[
:projects_with_prometheus_alerts
]).
to
eq
(
2
)
...
...
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