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
9e12a3fe
Commit
9e12a3fe
authored
Jul 24, 2020
by
João Pereira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename container registry top-level key in usage ping
parent
111b6286
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
doc/development/telemetry/usage_ping.md
doc/development/telemetry/usage_ping.md
+3
-3
lib/gitlab/usage_data.rb
lib/gitlab/usage_data.rb
+1
-1
spec/lib/gitlab/usage_data_spec.rb
spec/lib/gitlab/usage_data_spec.rb
+2
-2
No files found.
doc/development/telemetry/usage_ping.md
View file @
9e12a3fe
...
...
@@ -738,8 +738,8 @@ appear to be associated to any of the services running, since they all appear to
|
`server`
|
`topology > nodes > node_services`
|
`enablement`
| | | The type of web server used (Unicorn or Puma) |
|
`network_policy_forwards`
|
`counts`
|
`defend`
| | EE | Cumulative count of forwarded packets by Container Network |
|
`network_policy_drops`
|
`counts`
|
`defend`
| | EE | Cumulative count of dropped packets by Container Network |
|
`vendor`
|
`container_registry
`
|
`package`
| | CE+EE | The Container Registry vendor (GitLab or third-party) |
|
`version`
|
`container_registry
`
|
`package`
| | CE+EE | The Container Registry version (only when vendor is GitLab) |
|
`vendor`
|
`container_registry
_server`
|
`package`
| | CE+EE | The Container Registry vendor (GitLab or third-party) |
|
`version`
|
`container_registry
_server`
|
`package`
| | CE+EE | The Container Registry version (only when vendor is GitLab) |
## Example Usage Ping payload
...
...
@@ -814,7 +814,7 @@ The following is example content of the Usage Ping payload.
"enabled"
:
true
,
"version"
:
"1.17.0"
},
"container_registry"
:
{
"container_registry
_server
"
:
{
"vendor"
:
"gitlab"
,
"version"
:
"2.9.1-gitlab"
},
...
...
lib/gitlab/usage_data.rb
View file @
9e12a3fe
...
...
@@ -255,7 +255,7 @@ module Gitlab
enabled:
alt_usage_data
(
fallback:
nil
)
{
Gitlab
.
config
.
pages
.
enabled
},
version:
alt_usage_data
{
Gitlab
::
Pages
::
VERSION
}
},
container_registry:
{
container_registry
_server
:
{
vendor:
alt_usage_data
(
fallback:
nil
)
{
Gitlab
::
CurrentSettings
.
container_registry_vendor
},
version:
alt_usage_data
(
fallback:
nil
)
{
Gitlab
::
CurrentSettings
.
container_registry_version
}
},
...
...
spec/lib/gitlab/usage_data_spec.rb
View file @
9e12a3fe
...
...
@@ -591,8 +591,8 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do
expect
(
subject
[
:gitaly
][
:clusters
]).
to
be
>=
0
expect
(
subject
[
:gitaly
][
:filesystems
]).
to
be_an
(
Array
)
expect
(
subject
[
:gitaly
][
:filesystems
].
first
).
to
be_a
(
String
)
expect
(
subject
[
:container_registry
][
:vendor
]).
to
eq
(
'gitlab'
)
expect
(
subject
[
:container_registry
][
:version
]).
to
eq
(
'x.y.z'
)
expect
(
subject
[
:container_registry
_server
][
:vendor
]).
to
eq
(
'gitlab'
)
expect
(
subject
[
:container_registry
_server
][
:version
]).
to
eq
(
'x.y.z'
)
end
end
...
...
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