David Pursehouse | 8ad1173 | 2016-08-29 15:00:14 +0900 | [diff] [blame] | 1 | = Gerrit Code Review - Metrics |
| 2 | |
| 3 | Metrics about Gerrit's internal state can be sent to external monitoring systems |
| 4 | via plugins. See the link:dev-plugins.html#metrics[plugin documentation] for |
| 5 | details of plugin implementations. |
| 6 | |
| 7 | == Metrics |
| 8 | |
| 9 | The following metrics are reported. |
| 10 | |
| 11 | === General |
| 12 | |
| 13 | * `build/label`: Version of Gerrit server software. |
| 14 | * `events`: Triggered events. |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 15 | ** `type`: |
| 16 | The type of the event. |
David Pursehouse | 8ad1173 | 2016-08-29 15:00:14 +0900 | [diff] [blame] | 17 | |
Edwin Kempin | 9c6f12c | 2018-01-04 14:21:40 +0100 | [diff] [blame] | 18 | === Actions |
| 19 | |
Patrick Hiesel | 256be8d | 2019-04-25 09:46:56 +0200 | [diff] [blame] | 20 | * `action/retry_attempt_count`: Number of retry attempts made |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 21 | by RetryHelper to execute an action (0 == single attempt, no retry) |
| 22 | ** `action_type`: |
| 23 | The type of the action that was retried. |
| 24 | ** `operation_name`: |
| 25 | The name of the operation that was retried. |
| 26 | ** `cause`: |
| 27 | The original cause that triggered the retry. |
Edwin Kempin | 9c6f12c | 2018-01-04 14:21:40 +0100 | [diff] [blame] | 28 | * `action/retry_timeout_count`: Number of action executions of RetryHelper |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 29 | that ultimately timed out |
| 30 | ** `action_type`: |
| 31 | The type of the action that was retried. |
| 32 | ** `operation_name`: |
| 33 | The name of the operation that was retried. |
| 34 | ** `cause`: |
| 35 | The original cause that triggered the retry. |
Edwin Kempin | ae84332 | 2019-08-02 13:16:55 +0200 | [diff] [blame] | 36 | * `action/auto_retry_count`: Number of automatic retries with tracing |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 37 | ** `action_type`: |
| 38 | The type of the action that was retried. |
| 39 | ** `operation_name`: |
| 40 | The name of the operation that was retried. |
| 41 | ** `cause`: |
| 42 | The cause for the retry. |
Edwin Kempin | 755504f | 2019-08-21 10:40:56 +0200 | [diff] [blame] | 43 | * `action/failures_on_auto_retry_count`: Number of failures on auto retry |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 44 | ** `action_type`: |
| 45 | The type of the action that was retried. |
| 46 | ** `operation_name`: |
| 47 | The name of the operation that was retried. |
| 48 | ** `cause`: |
| 49 | The cause for the retry. |
Edwin Kempin | 9c6f12c | 2018-01-04 14:21:40 +0100 | [diff] [blame] | 50 | |
Edwin Kempin | 40c2989 | 2021-09-01 15:58:05 +0200 | [diff] [blame] | 51 | [[cancellations]] |
Edwin Kempin | 63a3f24 | 2021-08-05 13:35:37 +0200 | [diff] [blame] | 52 | === Cancellations |
| 53 | |
Edwin Kempin | 0bc9df9 | 2021-08-05 16:15:09 +0200 | [diff] [blame] | 54 | * `cancellation/advisory_deadline_count`: Exceeded advisory deadlines by request |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 55 | ** `request_type`: |
| 56 | The type of the request to which the advisory deadline applied. |
| 57 | ** `request_uri`: |
| 58 | The redacted URI of the request to which the advisory deadline applied (only |
| 59 | set for request_type = REST). |
| 60 | ** `deadline_id`: |
| 61 | The ID of the advisory deadline. |
Edwin Kempin | 63a3f24 | 2021-08-05 13:35:37 +0200 | [diff] [blame] | 62 | * `cancellation/cancelled_requests_count`: Number of request cancellations by |
| 63 | request |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 64 | ** `request_type`: |
| 65 | The type of the request that was cancelled. |
| 66 | ** `request_uri`: |
| 67 | The redacted URI of the request that was cancelled (only set for |
| 68 | request_type = REST). |
| 69 | ** `cancellation_reason`: |
| 70 | The reason why the request was cancelled. |
Edwin Kempin | 81f2750 | 2021-08-10 13:27:24 +0200 | [diff] [blame] | 71 | * `cancellation/receive_timeout_count`: Number of requests that are cancelled |
| 72 | because link:config.html#receive.timeout[receive.timout] is exceeded |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 73 | ** `cancellation_type`: |
| 74 | The cancellation type (graceful or forceful). |
Edwin Kempin | 63a3f24 | 2021-08-05 13:35:37 +0200 | [diff] [blame] | 75 | |
Edwin Kempin | 20ace9d | 2021-09-20 15:53:49 +0200 | [diff] [blame] | 76 | [[performance]] |
| 77 | === Performance |
| 78 | |
| 79 | * `performance/operations`: Latency of performing operations |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 80 | ** `operation_name`: |
| 81 | The operation that was performed. |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 82 | ** `request`: |
| 83 | The request for which the operation was performed (format = '<request-type> |
| 84 | <redacted-request-uri>'). |
Edwin Kempin | 4bc8c94 | 2021-09-22 09:01:17 +0200 | [diff] [blame] | 85 | ** `plugin`: |
| 86 | The name of the plugin that performed the operation. |
Edwin Kempin | ac9590f | 2021-10-14 15:18:28 +0200 | [diff] [blame] | 87 | * `performance/operations_count`: Number of performed operations |
| 88 | ** `operation_name`: |
| 89 | The operation that was performed. |
| 90 | ** `request`: |
| 91 | The request for which the operation was performed (format = '<request-type> |
| 92 | <redacted-request-uri>'). |
| 93 | ** `plugin`: |
| 94 | The name of the plugin that performed the operation. |
Edwin Kempin | 4bc8c94 | 2021-09-22 09:01:17 +0200 | [diff] [blame] | 95 | |
Fabio Ponciroli | 05bb403 | 2022-01-18 14:37:26 +0100 | [diff] [blame] | 96 | Performance metrics can be enabled via the |
| 97 | link:config.gerrit.html#tracing.exportPerformanceMetrics[`tracing.exportPerformanceMetrics`] |
| 98 | setting. |
Edwin Kempin | 20ace9d | 2021-09-20 15:53:49 +0200 | [diff] [blame] | 99 | |
Han-Wen Nienhuys | f7f6712 | 2018-10-08 16:45:49 +0200 | [diff] [blame] | 100 | === Pushes |
| 101 | |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 102 | * `receivecommits/changes`: histogram of number of changes processed in a single |
| 103 | upload |
| 104 | ** `type`: |
| 105 | type of push (create/replace, autoclose) |
| 106 | * `receivecommits/latency_per_push`: processing delay for a processing single |
| 107 | push |
| 108 | ** `type`: |
| 109 | type of push (create/replace, autoclose, normal) |
| 110 | * `receivecommits/latency_per_push_per_change`: Processing delay per push |
| 111 | divided by the number of changes in said push. (Only includes pushes which |
| 112 | contain changes.) |
| 113 | ** `type`: |
| 114 | type of push (create/replace, autoclose, normal) |
| 115 | * `receivecommits/timeout`: rate of push timeouts |
Edwin Kempin | 5ee8229 | 2021-09-23 09:34:10 +0200 | [diff] [blame] | 116 | * `receivecommits/ps_revision_missing`: errors due to patch set revision missing |
Edwin Kempin | 8e425bc | 2021-09-23 09:36:24 +0200 | [diff] [blame] | 117 | * `receivecommits/push_count`: number of pushes |
| 118 | ** `kind`: |
Edwin Kempin | a1b78c7 | 2021-10-27 16:18:50 +0200 | [diff] [blame] | 119 | The push kind (magic, direct or direct_submit). |
Edwin Kempin | 8e425bc | 2021-09-23 09:36:24 +0200 | [diff] [blame] | 120 | ** `project`: |
| 121 | The name of the project for which the push is done. |
Edwin Kempin | ef3c42e | 2021-09-23 10:20:36 +0200 | [diff] [blame] | 122 | ** `type`: |
| 123 | The type of the update (CREATE, UPDATE, CREATE/UPDATE, UPDATE_NONFASTFORWARD, |
| 124 | DELETE). |
Han-Wen Nienhuys | f7f6712 | 2018-10-08 16:45:49 +0200 | [diff] [blame] | 125 | |
David Pursehouse | 8ad1173 | 2016-08-29 15:00:14 +0900 | [diff] [blame] | 126 | === Process |
| 127 | |
| 128 | * `proc/birth_timestamp`: Time at which the Gerrit process started. |
| 129 | * `proc/uptime`: Uptime of the Gerrit process. |
Matthias Sohn | e2b3f8e | 2020-03-06 13:22:26 +0100 | [diff] [blame] | 130 | * `proc/cpu/num_cores`: Number of processors available to the Java virtual machine. |
David Pursehouse | 8ad1173 | 2016-08-29 15:00:14 +0900 | [diff] [blame] | 131 | * `proc/cpu/usage`: CPU time used by the Gerrit process. |
Matthias Sohn | fa8de02 | 2020-03-06 13:39:44 +0100 | [diff] [blame] | 132 | * `proc/cpu/system_load`: System load average for the last minute. |
David Pursehouse | 8ad1173 | 2016-08-29 15:00:14 +0900 | [diff] [blame] | 133 | * `proc/num_open_fds`: Number of open file descriptors. |
Matthias Sohn | ad6c877 | 2023-02-17 01:49:38 +0100 | [diff] [blame] | 134 | * `proc/jvm/memory/allocated`: Total memory allocated by all threads since Gerrit process started. |
David Pursehouse | 8ad1173 | 2016-08-29 15:00:14 +0900 | [diff] [blame] | 135 | * `proc/jvm/memory/heap_committed`: Amount of memory guaranteed for user objects. |
| 136 | * `proc/jvm/memory/heap_used`: Amount of memory holding user objects. |
| 137 | * `proc/jvm/memory/non_heap_committed`: Amount of memory guaranteed for classes, |
| 138 | etc. |
| 139 | * `proc/jvm/memory/non_heap_used`: Amount of memory holding classes, etc. |
| 140 | * `proc/jvm/memory/object_pending_finalization_count`: Approximate number of |
| 141 | objects needing finalization. |
| 142 | * `proc/jvm/gc/count`: Number of GCs. |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 143 | ** `gc_name`: |
| 144 | The name of the garbage collector. |
David Pursehouse | 8ad1173 | 2016-08-29 15:00:14 +0900 | [diff] [blame] | 145 | * `proc/jvm/gc/time`: Approximate accumulated GC elapsed time. |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 146 | ** `gc_name`: |
| 147 | The name of the garbage collector. |
| 148 | * `proc/jvm/memory/pool/committed`: Committed amount of memory for pool. |
| 149 | ** `pool_name`: |
| 150 | The name of the memory pool. |
| 151 | * `proc/jvm/memory/pool/max`: Maximum amount of memory for pool. |
| 152 | ** `pool_name`: |
| 153 | The name of the memory pool. |
| 154 | * `proc/jvm/memory/pool/used`: Used amount of memory for pool. |
| 155 | ** `pool_name`: |
| 156 | The name of the memory pool. |
David Pursehouse | 8ad1173 | 2016-08-29 15:00:14 +0900 | [diff] [blame] | 157 | * `proc/jvm/thread/num_live`: Current live thread count. |
Matthias Sohn | 9fc47ca | 2020-03-06 13:15:10 +0100 | [diff] [blame] | 158 | * `proc/jvm/thread/num_daemon_live`: Current live daemon threads count. |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 159 | * `proc/jvm/thread/num_peak_live`: Peak live thread count since the Java virtual |
| 160 | machine started or peak was reset. |
| 161 | * `proc/jvm/thread/num_total_started`: Total number of threads created and also |
| 162 | started since the Java virtual machine started. |
| 163 | * `proc/jvm/thread/num_deadlocked_threads`: Number of threads that are |
| 164 | deadlocked waiting for object monitors or ownable synchronizers. |
| 165 | If deadlocks waiting for ownable synchronizers can be monitored depends on the |
| 166 | capabilities of the used JVM. |
David Pursehouse | 8ad1173 | 2016-08-29 15:00:14 +0900 | [diff] [blame] | 167 | |
| 168 | === Caches |
| 169 | |
| 170 | * `caches/memory_cached`: Memory entries. |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 171 | ** `cache_name`: |
| 172 | The name of the cache. |
David Pursehouse | 8ad1173 | 2016-08-29 15:00:14 +0900 | [diff] [blame] | 173 | * `caches/memory_hit_ratio`: Memory hit ratio. |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 174 | ** `cache_name`: |
| 175 | The name of the cache. |
David Pursehouse | 8ad1173 | 2016-08-29 15:00:14 +0900 | [diff] [blame] | 176 | * `caches/memory_eviction_count`: Memory eviction count. |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 177 | ** `cache_name`: |
| 178 | The name of the cache. |
David Pursehouse | 8ad1173 | 2016-08-29 15:00:14 +0900 | [diff] [blame] | 179 | * `caches/disk_cached`: Disk entries used by persistent cache. |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 180 | ** `cache_name`: |
| 181 | The name of the cache. |
David Pursehouse | 8ad1173 | 2016-08-29 15:00:14 +0900 | [diff] [blame] | 182 | * `caches/disk_hit_ratio`: Disk hit ratio for persistent cache. |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 183 | ** `cache_name`: |
| 184 | The name of the cache. |
| 185 | * `caches/refresh_count`: The number of refreshes per cache with an indicator if |
| 186 | a reload was necessary. |
| 187 | ** `cache`: |
| 188 | The name of the cache. |
| 189 | ** `outdated`: |
| 190 | Whether the cache entry was outdated on reload. |
| 191 | * `caches/diff/timeouts`: The number of git file diff computations that resulted |
| 192 | in timeouts. |
| 193 | * `caches/diff/legacy/timeouts`: The number of git file diff computations (using |
| 194 | the legacy cache) that resulted in timeouts. |
David Pursehouse | 8ad1173 | 2016-08-29 15:00:14 +0900 | [diff] [blame] | 195 | |
Antoine Musso | eeebe41 | 2020-11-12 23:14:46 +0100 | [diff] [blame] | 196 | Cache disk metrics are expensive to compute on larger installations and are not |
| 197 | computed by default. They can be enabled via the |
| 198 | link:config.gerrit.html#cache.enableDiskStatMetrics[`cache.enableDiskStatMetrics`] |
| 199 | setting. |
| 200 | |
Patrick Hiesel | 8b38428 | 2019-08-09 10:51:30 +0200 | [diff] [blame] | 201 | === Change |
| 202 | |
Edwin Kempin | 5a57824 | 2023-02-15 11:01:51 +0100 | [diff] [blame] | 203 | * `change/count_rebases`: Total number of rebases |
| 204 | ** `on_behalf_of_uploader`: |
| 205 | Whether the rebase was done on behalf of the uploader. |
Edwin Kempin | 8cf8817 | 2023-03-31 09:06:58 +0000 | [diff] [blame] | 206 | If the uploader does a rebase with '`on_behalf_of_uploader = true`', the flag |
| 207 | is ignored and a normal rebase is done, hence such rebases are recorded as |
| 208 | '`on_behalf_of_uploader` = false`'. |
Edwin Kempin | 5a57824 | 2023-02-15 11:01:51 +0100 | [diff] [blame] | 209 | ** `rebase_chain`: |
| 210 | Whether a chain was rebased. |
Edwin Kempin | fb9baaa | 2023-03-30 13:38:00 +0000 | [diff] [blame] | 211 | ** `allow_conflicts`: |
| 212 | Whether the rebase was done with allowing conflicts. |
Edwin Kempin | 795ba05 | 2023-01-26 13:49:38 +0100 | [diff] [blame] | 213 | * `change/submitted_with_rebaser_approval`: Number of rebased changes that were |
| 214 | submitted with a Code-Review approval of the rebaser that would not have been |
| 215 | submittable if the rebase was not done on behalf of the uploader. |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 216 | * `change/submit_rule_evaluation`: Latency for evaluating submit rules on a |
| 217 | change. |
| 218 | * `change/submit_type_evaluation`: Latency for evaluating the submit type on a |
| 219 | change. |
| 220 | * `change/post_review/draft_handling`: Total number of draft handling option |
| 221 | (KEEP, PUBLISH, PUBLISH_ALL_REVISIONS) selected by users while posting a |
| 222 | review. |
| 223 | ** `type`: |
| 224 | The type of the draft handling option (KEEP, PUBLISH, PUBLISH_ALL_REVISIONS). |
Patrick Hiesel | 8b38428 | 2019-08-09 10:51:30 +0200 | [diff] [blame] | 225 | |
Youssef Elghareeb | a5c2545 | 2021-02-03 19:36:49 +0100 | [diff] [blame] | 226 | === Comments |
| 227 | |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 228 | * `ported_comments/as_patchset_level`: Total number of comments ported as |
| 229 | patchset-level comments. |
| 230 | * `ported_comments/as_file_level`: Total number of comments ported as file-level |
| 231 | comments. |
| 232 | * `ported_comments/as_range_comments`: Total number of comments having |
| 233 | line/range values in the ported patchset. |
Youssef Elghareeb | a5c2545 | 2021-02-03 19:36:49 +0100 | [diff] [blame] | 234 | |
David Pursehouse | 8ad1173 | 2016-08-29 15:00:14 +0900 | [diff] [blame] | 235 | === HTTP |
| 236 | |
Matthias Sohn | db1e786 | 2020-01-31 10:37:47 +0100 | [diff] [blame] | 237 | ==== Jetty |
| 238 | |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 239 | * `http/server/jetty/connections/connections`: The current number of open |
| 240 | connections |
| 241 | * `http/server/jetty/connections/connections_total`: The total number of |
| 242 | connections opened |
| 243 | * `http/server/jetty/connections/connections_duration_max`: The max duration of |
| 244 | a connection in ms |
| 245 | * `http/server/jetty/connections/connections_duration_mean`: The mean duration |
| 246 | of a connection in ms |
| 247 | * `http/server/jetty/connections/connections_duration_stdev`: The standard |
| 248 | deviation of the duration of a connection in ms |
| 249 | * `http/server/jetty/connections/received_messages`: The total number of |
| 250 | messages received |
| 251 | * `http/server/jetty/connections/sent_messages`: The total number of messages |
| 252 | sent |
| 253 | * `http/server/jetty/connections/received_bytes`: Total number of bytes received |
| 254 | by tracked connections |
| 255 | * `http/server/jetty/connections/sent_bytes`: Total number of bytes sent by |
| 256 | tracked connections |
Matthias Sohn | ae4a73b | 2020-01-31 10:37:47 +0100 | [diff] [blame] | 257 | * `http/server/jetty/threadpool/active_threads`: Active threads |
Matthias Sohn | db1e786 | 2020-01-31 10:37:47 +0100 | [diff] [blame] | 258 | * `http/server/jetty/threadpool/idle_threads`: Idle threads |
Matthias Sohn | ae4a73b | 2020-01-31 10:37:47 +0100 | [diff] [blame] | 259 | * `http/server/jetty/threadpool/reserved_threads`: Reserved threads |
Matthias Sohn | db1e786 | 2020-01-31 10:37:47 +0100 | [diff] [blame] | 260 | * `http/server/jetty/threadpool/max_pool_size`: Maximum thread pool size |
| 261 | * `http/server/jetty/threadpool/min_pool_size`: Minimum thread pool size |
| 262 | * `http/server/jetty/threadpool/pool_size`: Current thread pool size |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 263 | * `http/server/jetty/threadpool/queue_size`: Queued requests waiting for a |
| 264 | thread |
| 265 | * `http/server/jetty/threadpool/is_low_on_threads`: Whether thread pool is low |
| 266 | on threads |
Matthias Sohn | db1e786 | 2020-01-31 10:37:47 +0100 | [diff] [blame] | 267 | |
Luca Milanesio | ed2eb74 | 2021-05-04 23:26:47 +0100 | [diff] [blame] | 268 | ==== LDAP |
| 269 | |
| 270 | * `ldap/login_latency`: Latency of logins. |
| 271 | * `ldap/user_search_latency`: Latency for searching the user account. |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 272 | * `ldap/group_search_latency`: Latency for querying the group memberships of an |
| 273 | account. |
Luca Milanesio | ed2eb74 | 2021-05-04 23:26:47 +0100 | [diff] [blame] | 274 | * `ldap/group_expansion_latency`: Latency for expanding nested groups. |
| 275 | |
Matthias Sohn | db1e786 | 2020-01-31 10:37:47 +0100 | [diff] [blame] | 276 | ==== REST API |
| 277 | |
David Pursehouse | 8ad1173 | 2016-08-29 15:00:14 +0900 | [diff] [blame] | 278 | * `http/server/error_count`: Rate of REST API error responses. |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 279 | ** `status`: |
| 280 | HTTP status code |
David Pursehouse | 8ad1173 | 2016-08-29 15:00:14 +0900 | [diff] [blame] | 281 | * `http/server/success_count`: Rate of REST API success responses. |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 282 | ** `status`: |
| 283 | HTTP status code |
David Pursehouse | 8ad1173 | 2016-08-29 15:00:14 +0900 | [diff] [blame] | 284 | * `http/server/rest_api/count`: Rate of REST API calls by view. |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 285 | ** `view`: |
| 286 | view implementation class |
Patrick Hiesel | 010e49b | 2017-12-14 17:50:21 +0100 | [diff] [blame] | 287 | * `http/server/rest_api/change_id_type`: Rate of REST API calls by change ID type. |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 288 | ** `change_id_type`: |
| 289 | The type of the change identifier. |
David Pursehouse | 8ad1173 | 2016-08-29 15:00:14 +0900 | [diff] [blame] | 290 | * `http/server/rest_api/error_count`: Rate of REST API calls by view. |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 291 | ** `view`: |
| 292 | view implementation class |
| 293 | ** `error_code`: |
| 294 | HTTP status code |
| 295 | ** `cause`: |
| 296 | The cause of the error. |
David Pursehouse | 8ad1173 | 2016-08-29 15:00:14 +0900 | [diff] [blame] | 297 | * `http/server/rest_api/server_latency`: REST API call latency by view. |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 298 | ** `view`: |
| 299 | view implementation class |
David Pursehouse | 8ad1173 | 2016-08-29 15:00:14 +0900 | [diff] [blame] | 300 | * `http/server/rest_api/response_bytes`: Size of REST API response on network |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 301 | (may be gzip compressed) by view. |
| 302 | ** `view`: |
| 303 | view implementation class |
Patrick Hiesel | 1a4041f | 2018-04-06 10:20:05 +0200 | [diff] [blame] | 304 | * `http/server/rest_api/change_json/to_change_info_latency`: Latency for |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 305 | toChangeInfo invocations in ChangeJson. |
Patrick Hiesel | 1a4041f | 2018-04-06 10:20:05 +0200 | [diff] [blame] | 306 | * `http/server/rest_api/change_json/to_change_infos_latency`: Latency for |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 307 | toChangeInfos invocations in ChangeJson. |
Patrick Hiesel | 1a4041f | 2018-04-06 10:20:05 +0200 | [diff] [blame] | 308 | * `http/server/rest_api/change_json/format_query_results_latency`: Latency for |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 309 | formatQueryResults invocations in ChangeJson. |
| 310 | * `http/server/rest_api/ui_actions/latency`: Latency for RestView#getDescription |
| 311 | calls. |
| 312 | ** `view`: |
| 313 | view implementation class |
David Pursehouse | 8ad1173 | 2016-08-29 15:00:14 +0900 | [diff] [blame] | 314 | |
| 315 | === Query |
| 316 | |
| 317 | * `query/query_latency`: Successful query latency, accumulated over the life |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 318 | of the process. |
| 319 | ** `index`: index name |
David Pursehouse | 8ad1173 | 2016-08-29 15:00:14 +0900 | [diff] [blame] | 320 | |
Eryk Szymanski | 04586d8 | 2018-05-30 22:42:20 +0200 | [diff] [blame] | 321 | === Core Queues |
Eryk Szymanski | 366c3a6 | 2018-05-03 15:04:12 +0200 | [diff] [blame] | 322 | |
Eryk Szymanski | 04586d8 | 2018-05-30 22:42:20 +0200 | [diff] [blame] | 323 | The following queues support metrics: |
| 324 | |
| 325 | * default `WorkQueue` |
| 326 | * index batch |
| 327 | * index interactive |
| 328 | * receive commits |
| 329 | * send email |
| 330 | * ssh batch worker |
| 331 | * ssh command start |
| 332 | * ssh interactive worker |
| 333 | * ssh stream worker |
| 334 | |
| 335 | Each queue provides the following metrics: |
| 336 | |
| 337 | * `queue/<queue_name>/pool_size`: Current number of threads in the pool |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 338 | * `queue/<queue_name>/max_pool_size`: Maximum allowed number of threads in the |
| 339 | pool |
| 340 | * `queue/<queue_name>/active_threads`: Number of threads that are actively |
| 341 | executing tasks |
Eryk Szymanski | 04586d8 | 2018-05-30 22:42:20 +0200 | [diff] [blame] | 342 | * `queue/<queue_name>/scheduled_tasks`: Number of scheduled tasks in the queue |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 343 | * `queue/<queue_name>/total_scheduled_tasks_count`: Total number of tasks that |
| 344 | have been scheduled |
| 345 | * `queue/<queue_name>/total_completed_tasks_count`: Total number of tasks that |
| 346 | have completed execution |
Eryk Szymanski | 366c3a6 | 2018-05-03 15:04:12 +0200 | [diff] [blame] | 347 | |
David Pursehouse | 8ad1173 | 2016-08-29 15:00:14 +0900 | [diff] [blame] | 348 | === SSH sessions |
| 349 | |
| 350 | * `sshd/sessions/connected`: Number of currently connected SSH sessions. |
| 351 | * `sshd/sessions/created`: Rate of new SSH sessions. |
| 352 | * `sshd/sessions/authentication_failures`: Rate of SSH authentication failures. |
| 353 | |
Han-Wen Nienhuys | 61f6565 | 2017-06-12 19:46:04 +0200 | [diff] [blame] | 354 | === Topics |
| 355 | |
| 356 | * `topic/cross_project_submit`: number of cross-project topic submissions. |
| 357 | * `topic/cross_project_submit_completed`: number of cross-project |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 358 | topic submissions that concluded successfully. |
Han-Wen Nienhuys | 61f6565 | 2017-06-12 19:46:04 +0200 | [diff] [blame] | 359 | |
David Pursehouse | 8ad1173 | 2016-08-29 15:00:14 +0900 | [diff] [blame] | 360 | === JGit |
| 361 | |
Matthias Sohn | 11b517e | 2020-03-05 17:43:12 +0100 | [diff] [blame] | 362 | * `jgit/block_cache/cache_used` : Bytes of memory retained in JGit block cache. |
| 363 | * `jgit/block_cache/open_files` : File handles held open by JGit block cache. |
| 364 | * `avg_load_time` : Average time to load a cache entry for JGit block cache. |
| 365 | * `total_load_time` : Total time to load cache entries for JGit block cache. |
Matthias Sohn | 028a01d | 2020-02-05 11:29:16 +0100 | [diff] [blame] | 366 | * `eviction_count` : Cache evictions for JGit block cache. |
| 367 | * `eviction_ratio` : Cache eviction ratio for JGit block cache. |
| 368 | * `hit_count` : Cache hits for JGit block cache. |
| 369 | * `hit_ratio` : Cache hit ratio for JGit block cache. |
| 370 | * `load_failure_count` : Failed cache loads for JGit block cache. |
| 371 | * `load_failure_ratio` : Failed cache load ratio for JGit block cache. |
| 372 | * `load_success_count` : Successful cache loads for JGit block cache. |
| 373 | * `miss_count` : Cache misses for JGit block cache. |
| 374 | * `miss_ratio` : Cache miss ratio for JGit block cache. |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 375 | * `cache_used_per_repository` : Bytes of memory retained per repository for the |
| 376 | top N repositories having most data in the cache. The number N of reported |
| 377 | repositories is limited to 1000. |
| 378 | ** `repository_name`: The name of the repository. |
David Pursehouse | 8ad1173 | 2016-08-29 15:00:14 +0900 | [diff] [blame] | 379 | |
| 380 | === Git |
| 381 | |
| 382 | * `git/upload-pack/request_count`: Total number of git-upload-pack requests. |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 383 | ** `operation`: |
| 384 | The name of the operation (CLONE, FETCH). |
David Pursehouse | 8ad1173 | 2016-08-29 15:00:14 +0900 | [diff] [blame] | 385 | * `git/upload-pack/phase_counting`: Time spent in the 'Counting...' phase. |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 386 | ** `operation`: |
| 387 | The name of the operation (CLONE, FETCH). |
David Pursehouse | 8ad1173 | 2016-08-29 15:00:14 +0900 | [diff] [blame] | 388 | * `git/upload-pack/phase_compressing`: Time spent in the 'Compressing...' phase. |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 389 | ** `operation`: |
| 390 | The name of the operation (CLONE, FETCH). |
David Pursehouse | 8ad1173 | 2016-08-29 15:00:14 +0900 | [diff] [blame] | 391 | * `git/upload-pack/phase_writing`: Time spent transferring bytes to client. |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 392 | ** `operation`: |
| 393 | The name of the operation (CLONE, FETCH). |
David Pursehouse | 8ad1173 | 2016-08-29 15:00:14 +0900 | [diff] [blame] | 394 | * `git/upload-pack/pack_bytes`: Distribution of sizes of packs sent to clients. |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 395 | ** `operation`: |
| 396 | The name of the operation (CLONE, FETCH). |
Patrick Hiesel | e77fae4 | 2021-03-25 10:08:36 +0100 | [diff] [blame] | 397 | * `git/auto-merge/num_operations`: Number of auto merge operations and context. |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 398 | ** `operation`: |
| 399 | The type of the operation (CACHE_LOAD, IN_MEMORY_WRITE, ON_DISK_WRITE). |
Patrick Hiesel | e77fae4 | 2021-03-25 10:08:36 +0100 | [diff] [blame] | 400 | * `git/auto-merge/latency`: Latency of auto merge operations and context. |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 401 | ** `operation`: |
| 402 | The type of the operation (CACHE_LOAD, IN_MEMORY_WRITE, ON_DISK_WRITE). |
Edwin Kempin | 516167d | 2016-11-25 14:42:11 +0100 | [diff] [blame] | 403 | |
David Pursehouse | 8ad1173 | 2016-08-29 15:00:14 +0900 | [diff] [blame] | 404 | === NoteDb |
| 405 | |
Edwin Kempin | 8900677 | 2019-12-30 15:57:23 +0100 | [diff] [blame] | 406 | * `notedb/update_latency`: NoteDb update latency for changes. |
| 407 | * `notedb/stage_update_latency`: Latency for staging change updates to NoteDb. |
| 408 | * `notedb/read_latency`: NoteDb read latency for changes. |
| 409 | * `notedb/parse_latency`: NoteDb parse latency for changes. |
Patrick Hiesel | 42b47b1 | 2019-07-22 09:32:37 +0200 | [diff] [blame] | 410 | * `notedb/external_id_cache_load_count`: Total number of times the external ID |
| 411 | cache loader was called. |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 412 | ** `partial`: |
| 413 | Whether the reload was partial. |
| 414 | * `notedb/external_id_partial_read_latency`: Latency for generating a new |
| 415 | external ID cache state from a prior state. |
Edwin Kempin | 69608c4 | 2017-03-30 17:20:22 +0200 | [diff] [blame] | 416 | * `notedb/external_id_update_count`: Total number of external ID updates. |
| 417 | * `notedb/read_all_external_ids_latency`: Latency for reading all |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 418 | external ID's from NoteDb. |
Patrick Hiesel | a583bca | 2020-01-30 10:20:26 +0100 | [diff] [blame] | 419 | * `notedb/read_single_account_config_latency`: Latency for reading a single |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 420 | account config from NoteDb. |
Patrick Hiesel | a583bca | 2020-01-30 10:20:26 +0100 | [diff] [blame] | 421 | * `notedb/read_single_external_id_latency`: Latency for reading a single |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 422 | external ID from NoteDb. |
David Pursehouse | 8ad1173 | 2016-08-29 15:00:14 +0900 | [diff] [blame] | 423 | |
Patrick Hiesel | f71bafe | 2018-09-24 16:42:54 +0200 | [diff] [blame] | 424 | === Permissions |
| 425 | |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 426 | * `permissions/permission_collection/filter_latency`: Latency for access filter |
| 427 | computations in PermissionCollection |
Patrick Hiesel | c84c4e6 | 2018-09-28 13:02:25 +0200 | [diff] [blame] | 428 | * `permissions/ref_filter/full_filter_count`: Rate of full ref filter operations |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 429 | * `permissions/ref_filter/skip_filter_count`: Rate of ref filter operations |
| 430 | where we skip full evaluation because the user can read all refs |
Patrick Hiesel | f71bafe | 2018-09-24 16:42:54 +0200 | [diff] [blame] | 431 | |
Edwin Kempin | f68598a | 2016-11-15 17:38:49 -0800 | [diff] [blame] | 432 | === Reviewer Suggestion |
| 433 | |
| 434 | * `reviewer_suggestion/query_accounts`: Latency for querying accounts for |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 435 | reviewer suggestion. |
Edwin Kempin | f68598a | 2016-11-15 17:38:49 -0800 | [diff] [blame] | 436 | * `reviewer_suggestion/recommend_accounts`: Latency for recommending accounts |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 437 | for reviewer suggestion. |
Edwin Kempin | f68598a | 2016-11-15 17:38:49 -0800 | [diff] [blame] | 438 | * `reviewer_suggestion/load_accounts`: Latency for loading accounts for |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 439 | reviewer suggestion. |
Edwin Kempin | f68598a | 2016-11-15 17:38:49 -0800 | [diff] [blame] | 440 | * `reviewer_suggestion/query_groups`: Latency for querying groups for reviewer |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 441 | suggestion. |
| 442 | * `reviewer_suggestion/filter_visibility`: Latency for removing users that can't |
| 443 | see the change |
Edwin Kempin | f68598a | 2016-11-15 17:38:49 -0800 | [diff] [blame] | 444 | |
Dave Borowitz | 80fba94 | 2017-06-28 13:20:30 -0400 | [diff] [blame] | 445 | === Repo Sequences |
| 446 | |
| 447 | * `sequence/next_id_latency`: Latency of requesting IDs from repo sequences. |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 448 | ** `sequence`: |
| 449 | The sequence from which IDs were retrieved. |
| 450 | ** `multiple`: |
| 451 | Whether more than one ID was retrieved. |
Dave Borowitz | 80fba94 | 2017-06-28 13:20:30 -0400 | [diff] [blame] | 452 | |
Edwin Kempin | ec7e81f | 2018-09-14 15:21:10 +0200 | [diff] [blame] | 453 | === Plugin |
| 454 | |
Edwin Kempin | 49975d8 | 2018-09-19 15:14:51 +0200 | [diff] [blame] | 455 | * `plugin/latency`: Latency for plugin invocation. |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 456 | ** `plugin_name`" |
| 457 | The name of the plugin. |
| 458 | ** `class`: |
| 459 | The class of the plugin that was invoked. |
| 460 | ** `export_value`: |
| 461 | The export name under which the invoked class is registered. |
Edwin Kempin | ec7e81f | 2018-09-14 15:21:10 +0200 | [diff] [blame] | 462 | * `plugin/error_count`: Number of plugin errors. |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 463 | ** `plugin_name`" |
| 464 | The name of the plugin. |
| 465 | ** `class`: |
| 466 | The class of the plugin that was invoked. |
| 467 | ** `export_value`: |
| 468 | The export name under which the invoked class is registered. |
Edwin Kempin | ec7e81f | 2018-09-14 15:21:10 +0200 | [diff] [blame] | 469 | |
Edwin Kempin | 8e07cf6 | 2018-10-25 16:25:25 +0200 | [diff] [blame] | 470 | === Group |
| 471 | |
| 472 | * `group/guess_relevant_groups_latency`: Latency for guessing relevant groups. |
Jackson Toeniskoetter | 166d58f | 2022-05-10 11:45:28 -0700 | [diff] [blame] | 473 | * `group/handles_count`: Number of calls to GroupBackend.handles. |
| 474 | * `group/get_count`: Number of calls to GroupBackend.get. |
| 475 | * `group/suggest_count`: Number of calls to GroupBackend.suggest. |
| 476 | * `group/contains_count`: Number of calls to GroupMemberships.contains. |
| 477 | * `group/contains_any_of_count`: Number of calls to |
| 478 | GroupMemberships.containsAnyOf. |
| 479 | * `group/intersection_count`: Number of calls to GroupMemberships.intersection. |
| 480 | * `group/known_groups_count`: Number of calls to GroupMemberships.getKnownGroups. |
| 481 | |
Edwin Kempin | 8e07cf6 | 2018-10-25 16:25:25 +0200 | [diff] [blame] | 482 | |
David Pursehouse | 8ad1173 | 2016-08-29 15:00:14 +0900 | [diff] [blame] | 483 | === Replication Plugin |
| 484 | |
| 485 | * `plugins/replication/replication_latency`: Time spent pushing to remote |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 486 | destination. |
| 487 | ** `destination`: The destination of the replication. |
David Pursehouse | 8ad1173 | 2016-08-29 15:00:14 +0900 | [diff] [blame] | 488 | * `plugins/replication/replication_delay`: Time spent waiting before pushing to |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 489 | remote destination. |
| 490 | ** `destination`: The destination of the replication. |
David Pursehouse | 8ad1173 | 2016-08-29 15:00:14 +0900 | [diff] [blame] | 491 | * `plugins/replication/replication_retries`: Number of retries when pushing to |
Edwin Kempin | 6343a80 | 2021-09-21 16:44:16 +0200 | [diff] [blame] | 492 | remote destination. |
| 493 | ** `destination`: The destination of the replication. |
| 494 | * `plugins/replication/latency_slower_than_threshold`: latency for project to |
| 495 | destination, where latency was slower than threshold |
| 496 | ** `slow_threshold`: The threshold. |
| 497 | ** `project`: The name of the project. |
| 498 | ** `destination`: The destination of the replication. |
David Pursehouse | 8ad1173 | 2016-08-29 15:00:14 +0900 | [diff] [blame] | 499 | |
Minh Thai | 44e95ee | 2017-02-28 17:39:37 -0800 | [diff] [blame] | 500 | === License |
| 501 | |
| 502 | * `license/cla_check_count`: Total number of CLA check requests. |
| 503 | |
David Pursehouse | 8ad1173 | 2016-08-29 15:00:14 +0900 | [diff] [blame] | 504 | GERRIT |
| 505 | ------ |
| 506 | Part of link:index.html[Gerrit Code Review] |
| 507 | |
| 508 | SEARCHBOX |
| 509 | --------- |