blob: 236792b22ff20fd527579b32ee46f1164a0db19e [file] [log] [blame]
David Pursehouse8ad11732016-08-29 15:00:14 +09001= Gerrit Code Review - Metrics
2
3Metrics about Gerrit's internal state can be sent to external monitoring systems
4via plugins. See the link:dev-plugins.html#metrics[plugin documentation] for
5details of plugin implementations.
6
7== Metrics
8
9The following metrics are reported.
10
11=== General
12
13* `build/label`: Version of Gerrit server software.
14* `events`: Triggered events.
15
Edwin Kempin9c6f12c2018-01-04 14:21:40 +010016=== Actions
17
Patrick Hiesel256be8d2019-04-25 09:46:56 +020018* `action/retry_attempt_count`: Number of retry attempts made
19by RetryHelper to execute an action (0 == single attempt, no retry)
Edwin Kempin9c6f12c2018-01-04 14:21:40 +010020* `action/retry_timeout_count`: Number of action executions of RetryHelper
21that ultimately timed out
Edwin Kempinae843322019-08-02 13:16:55 +020022* `action/auto_retry_count`: Number of automatic retries with tracing
Edwin Kempin755504f2019-08-21 10:40:56 +020023* `action/failures_on_auto_retry_count`: Number of failures on auto retry
Edwin Kempin9c6f12c2018-01-04 14:21:40 +010024
Han-Wen Nienhuysf7f67122018-10-08 16:45:49 +020025=== Pushes
26
27* `receivecommits/changes`: histogram of number of changes processed
Han-Wen Nienhuys44b6e762019-03-06 13:38:24 +010028in a single upload, split up by update type (change created/updated,
29change autoclosed).
Han-Wen Nienhuysf7f67122018-10-08 16:45:49 +020030* `receivecommits/latency`: latency per change for processing a push,
31split up by update type (create+replace, and autoclose)
Han-Wen Nienhuys44b6e762019-03-06 13:38:24 +010032* `receivecommits/push_latency`: total latency for processing a push,
33split up by update type (create+replace, autoclose, normal)
Han-Wen Nienhuysf7f67122018-10-08 16:45:49 +020034* `receivecommits/timeout`: number of timeouts during push processing.
35
David Pursehouse8ad11732016-08-29 15:00:14 +090036=== Process
37
38* `proc/birth_timestamp`: Time at which the Gerrit process started.
39* `proc/uptime`: Uptime of the Gerrit process.
40* `proc/cpu/usage`: CPU time used by the Gerrit process.
41* `proc/num_open_fds`: Number of open file descriptors.
42* `proc/jvm/memory/heap_committed`: Amount of memory guaranteed for user objects.
43* `proc/jvm/memory/heap_used`: Amount of memory holding user objects.
44* `proc/jvm/memory/non_heap_committed`: Amount of memory guaranteed for classes,
45etc.
46* `proc/jvm/memory/non_heap_used`: Amount of memory holding classes, etc.
47* `proc/jvm/memory/object_pending_finalization_count`: Approximate number of
48objects needing finalization.
49* `proc/jvm/gc/count`: Number of GCs.
50* `proc/jvm/gc/time`: Approximate accumulated GC elapsed time.
51* `proc/jvm/thread/num_live`: Current live thread count.
52
53=== Caches
54
55* `caches/memory_cached`: Memory entries.
56* `caches/memory_hit_ratio`: Memory hit ratio.
57* `caches/memory_eviction_count`: Memory eviction count.
58* `caches/disk_cached`: Disk entries used by persistent cache.
59* `caches/disk_hit_ratio`: Disk hit ratio for persistent cache.
60
Patrick Hiesel8b384282019-08-09 10:51:30 +020061=== Change
62
63* `change/submit_rule_evaluation`: Latency for evaluating submit rules on a change.
64* `change/submit_type_evaluation`: Latency for evaluating the submit type on a change.
65
David Pursehouse8ad11732016-08-29 15:00:14 +090066=== HTTP
67
68* `http/server/error_count`: Rate of REST API error responses.
69* `http/server/success_count`: Rate of REST API success responses.
70* `http/server/rest_api/count`: Rate of REST API calls by view.
Patrick Hiesel010e49b2017-12-14 17:50:21 +010071* `http/server/rest_api/change_id_type`: Rate of REST API calls by change ID type.
David Pursehouse8ad11732016-08-29 15:00:14 +090072* `http/server/rest_api/error_count`: Rate of REST API calls by view.
73* `http/server/rest_api/server_latency`: REST API call latency by view.
74* `http/server/rest_api/response_bytes`: Size of REST API response on network
75(may be gzip compressed) by view.
Patrick Hiesel1a4041f2018-04-06 10:20:05 +020076* `http/server/rest_api/change_json/to_change_info_latency`: Latency for
77toChangeInfo invocations in ChangeJson.
78* `http/server/rest_api/change_json/to_change_infos_latency`: Latency for
79toChangeInfos invocations in ChangeJson.
80* `http/server/rest_api/change_json/format_query_results_latency`: Latency for
81formatQueryResults invocations in ChangeJson.
Patrick Hiesel4a56ff02018-05-08 15:33:45 +020082* `http/server/rest_api/ui_actions/latency`: Latency for RestView#getDescription calls.
David Pursehouse8ad11732016-08-29 15:00:14 +090083
84=== Query
85
86* `query/query_latency`: Successful query latency, accumulated over the life
87of the process.
88
Eryk Szymanski04586d82018-05-30 22:42:20 +020089=== Core Queues
Eryk Szymanski366c3a62018-05-03 15:04:12 +020090
Eryk Szymanski04586d82018-05-30 22:42:20 +020091The following queues support metrics:
92
93* default `WorkQueue`
94* index batch
95* index interactive
96* receive commits
97* send email
98* ssh batch worker
99* ssh command start
100* ssh interactive worker
101* ssh stream worker
102
103Each queue provides the following metrics:
104
105* `queue/<queue_name>/pool_size`: Current number of threads in the pool
106* `queue/<queue_name>/max_pool_size`: Maximum allowed number of threads in the pool
107* `queue/<queue_name>/active_threads`: Number of threads that are actively executing tasks
108* `queue/<queue_name>/scheduled_tasks`: Number of scheduled tasks in the queue
109* `queue/<queue_name>/total_scheduled_tasks_count`: Total number of tasks that have been scheduled
110* `queue/<queue_name>/total_completed_tasks_count`: Total number of tasks that have completed execution
Eryk Szymanski366c3a62018-05-03 15:04:12 +0200111
David Pursehouse8ad11732016-08-29 15:00:14 +0900112=== SSH sessions
113
114* `sshd/sessions/connected`: Number of currently connected SSH sessions.
115* `sshd/sessions/created`: Rate of new SSH sessions.
116* `sshd/sessions/authentication_failures`: Rate of SSH authentication failures.
117
Han-Wen Nienhuys61f65652017-06-12 19:46:04 +0200118=== Topics
119
120* `topic/cross_project_submit`: number of cross-project topic submissions.
121* `topic/cross_project_submit_completed`: number of cross-project
122topic submissions that concluded successfully.
123
David Pursehouse8ad11732016-08-29 15:00:14 +0900124=== JGit
125
126* `jgit/block_cache/cache_used`: Bytes of memory retained in JGit block cache.
127* `jgit/block_cache/open_files`: File handles held open by JGit block cache.
128
129=== Git
130
131* `git/upload-pack/request_count`: Total number of git-upload-pack requests.
132* `git/upload-pack/phase_counting`: Time spent in the 'Counting...' phase.
133* `git/upload-pack/phase_compressing`: Time spent in the 'Compressing...' phase.
134* `git/upload-pack/phase_writing`: Time spent transferring bytes to client.
135* `git/upload-pack/pack_bytes`: Distribution of sizes of packs sent to clients.
136
Edwin Kempin516167d2016-11-25 14:42:11 +0100137=== BatchUpdate
138
139* `batch_update/execute_change_ops`: BatchUpdate change update latency,
140excluding reindexing
141
David Pursehouse8ad11732016-08-29 15:00:14 +0900142=== NoteDb
143
Edwin Kempin89006772019-12-30 15:57:23 +0100144* `notedb/update_latency`: NoteDb update latency for changes.
145* `notedb/stage_update_latency`: Latency for staging change updates to NoteDb.
146* `notedb/read_latency`: NoteDb read latency for changes.
147* `notedb/parse_latency`: NoteDb parse latency for changes.
Patrick Hiesel42b47b12019-07-22 09:32:37 +0200148* `notedb/external_id_cache_load_count`: Total number of times the external ID
149 cache loader was called.
150* `notedb/external_id_partial_read_latency`: Latency for generating a new external ID
151 cache state from a prior state.
Edwin Kempin69608c42017-03-30 17:20:22 +0200152* `notedb/external_id_update_count`: Total number of external ID updates.
153* `notedb/read_all_external_ids_latency`: Latency for reading all
154external ID's from NoteDb.
David Pursehouse8ad11732016-08-29 15:00:14 +0900155
Patrick Hieself71bafe2018-09-24 16:42:54 +0200156=== Permissions
157
158* `permissions/project_state/computation_latency`: Latency to compute current access
159sections on a project by traversing it's parents.
160* `permissions/permission_collection/filter_latency`: Latency to filter access sections
161by user and ref.
Patrick Hieselc84c4e62018-09-28 13:02:25 +0200162* `permissions/ref_filter/full_filter_count`: Rate of full ref filter operations
163* `permissions/ref_filter/skip_filter_count`: Rate of ref filter operations where
164we skip full evaluation because the user can read all refs
Patrick Hieself71bafe2018-09-24 16:42:54 +0200165
Edwin Kempinf68598a2016-11-15 17:38:49 -0800166=== Reviewer Suggestion
167
168* `reviewer_suggestion/query_accounts`: Latency for querying accounts for
169reviewer suggestion.
170* `reviewer_suggestion/recommend_accounts`: Latency for recommending accounts
171for reviewer suggestion.
172* `reviewer_suggestion/load_accounts`: Latency for loading accounts for
173reviewer suggestion.
174* `reviewer_suggestion/query_groups`: Latency for querying groups for reviewer
175suggestion.
176
Dave Borowitz80fba942017-06-28 13:20:30 -0400177=== Repo Sequences
178
179* `sequence/next_id_latency`: Latency of requesting IDs from repo sequences.
180
Edwin Kempinec7e81f2018-09-14 15:21:10 +0200181=== Plugin
182
Edwin Kempin49975d82018-09-19 15:14:51 +0200183* `plugin/latency`: Latency for plugin invocation.
Edwin Kempinec7e81f2018-09-14 15:21:10 +0200184* `plugin/error_count`: Number of plugin errors.
185
Edwin Kempin8e07cf62018-10-25 16:25:25 +0200186=== Group
187
188* `group/guess_relevant_groups_latency`: Latency for guessing relevant groups.
189
David Pursehouse8ad11732016-08-29 15:00:14 +0900190=== Replication Plugin
191
192* `plugins/replication/replication_latency`: Time spent pushing to remote
193destination.
194* `plugins/replication/replication_delay`: Time spent waiting before pushing to
195remote destination.
196* `plugins/replication/replication_retries`: Number of retries when pushing to
197remote destination.
198
Minh Thai44e95ee2017-02-28 17:39:37 -0800199=== License
200
201* `license/cla_check_count`: Total number of CLA check requests.
202
David Pursehouse8ad11732016-08-29 15:00:14 +0900203GERRIT
204------
205Part of link:index.html[Gerrit Code Review]
206
207SEARCHBOX
208---------