blob: ce9f74ee8c484ab39dc508f97ef89aa1a9c90300 [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
18* `action/retry_attempt_counts`: Distribution of number of attempts made
19by RetryHelper to execute an action (1 == single attempt, no retry)
20* `action/retry_timeout_count`: Number of action executions of RetryHelper
21that ultimately timed out
22
Han-Wen Nienhuysf7f67122018-10-08 16:45:49 +020023=== Pushes
24
25* `receivecommits/changes`: histogram of number of changes processed
26in a single upload, split up by update type (new change created,
27existing changed updated, change autoclosed).
28* `receivecommits/latency`: latency per change for processing a push,
29split up by update type (create+replace, and autoclose)
30* `receivecommits/timeout`: number of timeouts during push processing.
31
David Pursehouse8ad11732016-08-29 15:00:14 +090032=== Process
33
34* `proc/birth_timestamp`: Time at which the Gerrit process started.
35* `proc/uptime`: Uptime of the Gerrit process.
36* `proc/cpu/usage`: CPU time used by the Gerrit process.
37* `proc/num_open_fds`: Number of open file descriptors.
38* `proc/jvm/memory/heap_committed`: Amount of memory guaranteed for user objects.
39* `proc/jvm/memory/heap_used`: Amount of memory holding user objects.
40* `proc/jvm/memory/non_heap_committed`: Amount of memory guaranteed for classes,
41etc.
42* `proc/jvm/memory/non_heap_used`: Amount of memory holding classes, etc.
43* `proc/jvm/memory/object_pending_finalization_count`: Approximate number of
44objects needing finalization.
45* `proc/jvm/gc/count`: Number of GCs.
46* `proc/jvm/gc/time`: Approximate accumulated GC elapsed time.
47* `proc/jvm/thread/num_live`: Current live thread count.
48
49=== Caches
50
51* `caches/memory_cached`: Memory entries.
52* `caches/memory_hit_ratio`: Memory hit ratio.
53* `caches/memory_eviction_count`: Memory eviction count.
54* `caches/disk_cached`: Disk entries used by persistent cache.
55* `caches/disk_hit_ratio`: Disk hit ratio for persistent cache.
56
57=== HTTP
58
Matthias Sohndb1e7862020-01-31 10:37:47 +010059==== Jetty
60
Matthias Sohnae4a73b2020-01-31 10:37:47 +010061* `http/server/jetty/threadpool/active_threads`: Active threads
Matthias Sohndb1e7862020-01-31 10:37:47 +010062* `http/server/jetty/threadpool/idle_threads`: Idle threads
Matthias Sohnae4a73b2020-01-31 10:37:47 +010063* `http/server/jetty/threadpool/reserved_threads`: Reserved threads
Matthias Sohndb1e7862020-01-31 10:37:47 +010064* `http/server/jetty/threadpool/max_pool_size`: Maximum thread pool size
65* `http/server/jetty/threadpool/min_pool_size`: Minimum thread pool size
66* `http/server/jetty/threadpool/pool_size`: Current thread pool size
Matthias Sohnae4a73b2020-01-31 10:37:47 +010067* `http/server/jetty/threadpool/queue_size`: Queued requests waiting for a thread
Matthias Sohndb1e7862020-01-31 10:37:47 +010068
69==== REST API
70
David Pursehouse8ad11732016-08-29 15:00:14 +090071* `http/server/error_count`: Rate of REST API error responses.
72* `http/server/success_count`: Rate of REST API success responses.
73* `http/server/rest_api/count`: Rate of REST API calls by view.
Patrick Hiesel010e49b2017-12-14 17:50:21 +010074* `http/server/rest_api/change_id_type`: Rate of REST API calls by change ID type.
David Pursehouse8ad11732016-08-29 15:00:14 +090075* `http/server/rest_api/error_count`: Rate of REST API calls by view.
76* `http/server/rest_api/server_latency`: REST API call latency by view.
77* `http/server/rest_api/response_bytes`: Size of REST API response on network
78(may be gzip compressed) by view.
Patrick Hiesel1a4041f2018-04-06 10:20:05 +020079* `http/server/rest_api/change_json/to_change_info_latency`: Latency for
80toChangeInfo invocations in ChangeJson.
81* `http/server/rest_api/change_json/to_change_infos_latency`: Latency for
82toChangeInfos invocations in ChangeJson.
83* `http/server/rest_api/change_json/format_query_results_latency`: Latency for
84formatQueryResults invocations in ChangeJson.
Patrick Hiesel4a56ff02018-05-08 15:33:45 +020085* `http/server/rest_api/ui_actions/latency`: Latency for RestView#getDescription calls.
David Pursehouse8ad11732016-08-29 15:00:14 +090086
87=== Query
88
89* `query/query_latency`: Successful query latency, accumulated over the life
90of the process.
91
Eryk Szymanski04586d82018-05-30 22:42:20 +020092=== Core Queues
Eryk Szymanski366c3a62018-05-03 15:04:12 +020093
Eryk Szymanski04586d82018-05-30 22:42:20 +020094The following queues support metrics:
95
96* default `WorkQueue`
97* index batch
98* index interactive
99* receive commits
100* send email
101* ssh batch worker
102* ssh command start
103* ssh interactive worker
104* ssh stream worker
105
106Each queue provides the following metrics:
107
108* `queue/<queue_name>/pool_size`: Current number of threads in the pool
109* `queue/<queue_name>/max_pool_size`: Maximum allowed number of threads in the pool
110* `queue/<queue_name>/active_threads`: Number of threads that are actively executing tasks
111* `queue/<queue_name>/scheduled_tasks`: Number of scheduled tasks in the queue
112* `queue/<queue_name>/total_scheduled_tasks_count`: Total number of tasks that have been scheduled
113* `queue/<queue_name>/total_completed_tasks_count`: Total number of tasks that have completed execution
Eryk Szymanski366c3a62018-05-03 15:04:12 +0200114
David Pursehouse8ad11732016-08-29 15:00:14 +0900115=== SSH sessions
116
117* `sshd/sessions/connected`: Number of currently connected SSH sessions.
118* `sshd/sessions/created`: Rate of new SSH sessions.
119* `sshd/sessions/authentication_failures`: Rate of SSH authentication failures.
120
121=== SQL connections
122
123* `sql/connection_pool/connections`: SQL database connections.
124
Han-Wen Nienhuys61f65652017-06-12 19:46:04 +0200125=== Topics
126
127* `topic/cross_project_submit`: number of cross-project topic submissions.
128* `topic/cross_project_submit_completed`: number of cross-project
129topic submissions that concluded successfully.
130
David Pursehouse8ad11732016-08-29 15:00:14 +0900131=== JGit
132
133* `jgit/block_cache/cache_used`: Bytes of memory retained in JGit block cache.
134* `jgit/block_cache/open_files`: File handles held open by JGit block cache.
135
136=== Git
137
138* `git/upload-pack/request_count`: Total number of git-upload-pack requests.
139* `git/upload-pack/phase_counting`: Time spent in the 'Counting...' phase.
140* `git/upload-pack/phase_compressing`: Time spent in the 'Compressing...' phase.
141* `git/upload-pack/phase_writing`: Time spent transferring bytes to client.
142* `git/upload-pack/pack_bytes`: Distribution of sizes of packs sent to clients.
143
Edwin Kempin516167d2016-11-25 14:42:11 +0100144=== BatchUpdate
145
146* `batch_update/execute_change_ops`: BatchUpdate change update latency,
147excluding reindexing
148
David Pursehouse8ad11732016-08-29 15:00:14 +0900149=== NoteDb
150
151* `notedb/update_latency`: NoteDb update latency by table.
152* `notedb/stage_update_latency`: Latency for staging updates to NoteDb by table.
153* `notedb/read_latency`: NoteDb read latency by table.
154* `notedb/parse_latency`: NoteDb parse latency by table.
155* `notedb/auto_rebuild_latency`: NoteDb auto-rebuilding latency by table.
156* `notedb/auto_rebuild_failure_count`: NoteDb auto-rebuilding attempts that
157failed by table.
Edwin Kempin69608c42017-03-30 17:20:22 +0200158* `notedb/external_id_update_count`: Total number of external ID updates.
159* `notedb/read_all_external_ids_latency`: Latency for reading all
160external ID's from NoteDb.
David Pursehouse8ad11732016-08-29 15:00:14 +0900161
Patrick Hieself71bafe2018-09-24 16:42:54 +0200162=== Permissions
163
164* `permissions/project_state/computation_latency`: Latency to compute current access
165sections on a project by traversing it's parents.
166* `permissions/permission_collection/filter_latency`: Latency to filter access sections
167by user and ref.
Patrick Hieselc84c4e62018-09-28 13:02:25 +0200168* `permissions/ref_filter/full_filter_count`: Rate of full ref filter operations
169* `permissions/ref_filter/skip_filter_count`: Rate of ref filter operations where
170we skip full evaluation because the user can read all refs
Patrick Hieself71bafe2018-09-24 16:42:54 +0200171
Edwin Kempinf68598a2016-11-15 17:38:49 -0800172=== Reviewer Suggestion
173
174* `reviewer_suggestion/query_accounts`: Latency for querying accounts for
175reviewer suggestion.
176* `reviewer_suggestion/recommend_accounts`: Latency for recommending accounts
177for reviewer suggestion.
178* `reviewer_suggestion/load_accounts`: Latency for loading accounts for
179reviewer suggestion.
180* `reviewer_suggestion/query_groups`: Latency for querying groups for reviewer
181suggestion.
182
Dave Borowitz80fba942017-06-28 13:20:30 -0400183=== Repo Sequences
184
185* `sequence/next_id_latency`: Latency of requesting IDs from repo sequences.
186
Edwin Kempinec7e81f2018-09-14 15:21:10 +0200187=== Plugin
188
Edwin Kempin49975d82018-09-19 15:14:51 +0200189* `plugin/latency`: Latency for plugin invocation.
Edwin Kempinec7e81f2018-09-14 15:21:10 +0200190* `plugin/error_count`: Number of plugin errors.
191
David Pursehouse8ad11732016-08-29 15:00:14 +0900192=== Replication Plugin
193
194* `plugins/replication/replication_latency`: Time spent pushing to remote
195destination.
196* `plugins/replication/replication_delay`: Time spent waiting before pushing to
197remote destination.
198* `plugins/replication/replication_retries`: Number of retries when pushing to
199remote destination.
200
Minh Thai44e95ee2017-02-28 17:39:37 -0800201=== License
202
203* `license/cla_check_count`: Total number of CLA check requests.
204
David Pursehouse8ad11732016-08-29 15:00:14 +0900205GERRIT
206------
207Part of link:index.html[Gerrit Code Review]
208
209SEARCHBOX
210---------