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
2b1a4057
Commit
2b1a4057
authored
Mar 03, 2022
by
Alina Mihaila
Committed by
Kati Paizee
Mar 03, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update info note for instrumentation class usage
parent
0c5944d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
doc/development/service_ping/implement.md
doc/development/service_ping/implement.md
+4
-5
No files found.
doc/development/service_ping/implement.md
View file @
2b1a4057
...
...
@@ -26,13 +26,12 @@ To implement a new metric in Service Ping, follow these steps:
1.
[
Verify your metric
](
#verify-your-metric
)
1.
[
Set up and test Service Ping locally
](
#set-up-and-test-service-ping-locally
)
NOTE:
When you add or change a Service Metric, you must migrate metrics to
[
instrumentation classes
](
metrics_instrumentation.md
)
.
For information about the progress on migrating Service ping metrics, see this
[
epic
](
https://gitlab.com/groups/gitlab-org/-/epics/5547
)
.
## Instrumentation classes
Implementing metrics direct in
`usage_data.rb`
is deprecated, we recommend you use
[
instrumentation classes
](
metrics_instrumentation.md
)
.
NOTE:
Implementing metrics directly in
`usage_data.rb`
is deprecated.
When you add or change a Service Ping Metric, you must migrate metrics to
[
instrumentation classes
](
metrics_instrumentation.md
)
.
For information about the progress on migrating Service Ping metrics, see this
[
epic
](
https://gitlab.com/groups/gitlab-org/-/epics/5547
)
.
For example, we have the following instrumentation class:
`lib/gitlab/usage/metrics/instrumentations/count_boards_metric.rb`
.
...
...
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