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
7f50e4ee
Commit
7f50e4ee
authored
Jan 17, 2022
by
Fiona Neill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add capitalization to list
parent
2ff51863
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
doc/development/service_ping/metrics_instrumentation.md
doc/development/service_ping/metrics_instrumentation.md
+4
-4
No files found.
doc/development/service_ping/metrics_instrumentation.md
View file @
7f50e4ee
...
...
@@ -33,11 +33,11 @@ We have built a domain-specific language (DSL) to define the metrics instrumenta
## Database metrics
-
`operation`
:
o
perations for the given
`relation`
, one of
`count`
,
`distinct_count`
.
-
`operation`
:
O
perations for the given
`relation`
, one of
`count`
,
`distinct_count`
.
-
`relation`
:
`ActiveRecord::Relation`
for the objects we want to perform the
`operation`
.
-
`start`
:
s
pecifies the start value of the batch counting, by default is
`relation.minimum(:id)`
.
-
`finish`
:
s
pecifies the end value of the batch counting, by default is
`relation.maximum(:id)`
.
-
`cache_start_and_finish_as`
:
s
pecifies the cache key for
`start`
and
`finish`
values, this is needed only if
`start`
and
`finish`
are used.
-
`start`
:
S
pecifies the start value of the batch counting, by default is
`relation.minimum(:id)`
.
-
`finish`
:
S
pecifies the end value of the batch counting, by default is
`relation.maximum(:id)`
.
-
`cache_start_and_finish_as`
:
S
pecifies the cache key for
`start`
and
`finish`
values, this is needed only if
`start`
and
`finish`
are used.
[
Example of a merge request that adds a database metric
](
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/60022
)
.
...
...
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