blob: 47e2505cdc26ee7d34dd1a38e991bba042c2ce2a [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
16=== Process
17
18* `proc/birth_timestamp`: Time at which the Gerrit process started.
19* `proc/uptime`: Uptime of the Gerrit process.
20* `proc/cpu/usage`: CPU time used by the Gerrit process.
21* `proc/num_open_fds`: Number of open file descriptors.
22* `proc/jvm/memory/heap_committed`: Amount of memory guaranteed for user objects.
23* `proc/jvm/memory/heap_used`: Amount of memory holding user objects.
24* `proc/jvm/memory/non_heap_committed`: Amount of memory guaranteed for classes,
25etc.
26* `proc/jvm/memory/non_heap_used`: Amount of memory holding classes, etc.
27* `proc/jvm/memory/object_pending_finalization_count`: Approximate number of
28objects needing finalization.
29* `proc/jvm/gc/count`: Number of GCs.
30* `proc/jvm/gc/time`: Approximate accumulated GC elapsed time.
31* `proc/jvm/thread/num_live`: Current live thread count.
32
33=== Caches
34
35* `caches/memory_cached`: Memory entries.
36* `caches/memory_hit_ratio`: Memory hit ratio.
37* `caches/memory_eviction_count`: Memory eviction count.
38* `caches/disk_cached`: Disk entries used by persistent cache.
39* `caches/disk_hit_ratio`: Disk hit ratio for persistent cache.
40
41=== HTTP
42
43* `http/server/error_count`: Rate of REST API error responses.
44* `http/server/success_count`: Rate of REST API success responses.
45* `http/server/rest_api/count`: Rate of REST API calls by view.
Patrick Hiesel010e49b2017-12-14 17:50:21 +010046* `http/server/rest_api/change_id_type`: Rate of REST API calls by change ID type.
David Pursehouse8ad11732016-08-29 15:00:14 +090047* `http/server/rest_api/error_count`: Rate of REST API calls by view.
48* `http/server/rest_api/server_latency`: REST API call latency by view.
49* `http/server/rest_api/response_bytes`: Size of REST API response on network
50(may be gzip compressed) by view.
51
52=== Query
53
54* `query/query_latency`: Successful query latency, accumulated over the life
55of the process.
56
57=== SSH sessions
58
59* `sshd/sessions/connected`: Number of currently connected SSH sessions.
60* `sshd/sessions/created`: Rate of new SSH sessions.
61* `sshd/sessions/authentication_failures`: Rate of SSH authentication failures.
62
63=== SQL connections
64
65* `sql/connection_pool/connections`: SQL database connections.
66
Han-Wen Nienhuys61f65652017-06-12 19:46:04 +020067=== Topics
68
69* `topic/cross_project_submit`: number of cross-project topic submissions.
70* `topic/cross_project_submit_completed`: number of cross-project
71topic submissions that concluded successfully.
72
David Pursehouse8ad11732016-08-29 15:00:14 +090073=== JGit
74
75* `jgit/block_cache/cache_used`: Bytes of memory retained in JGit block cache.
76* `jgit/block_cache/open_files`: File handles held open by JGit block cache.
77
78=== Git
79
80* `git/upload-pack/request_count`: Total number of git-upload-pack requests.
81* `git/upload-pack/phase_counting`: Time spent in the 'Counting...' phase.
82* `git/upload-pack/phase_compressing`: Time spent in the 'Compressing...' phase.
83* `git/upload-pack/phase_writing`: Time spent transferring bytes to client.
84* `git/upload-pack/pack_bytes`: Distribution of sizes of packs sent to clients.
85
Edwin Kempin516167d2016-11-25 14:42:11 +010086=== BatchUpdate
87
88* `batch_update/execute_change_ops`: BatchUpdate change update latency,
89excluding reindexing
Dave Borowitz44f346a2017-08-23 13:16:33 -040090* `batch_update/retry_attempt_counts`: Distribution of number of attempts made
91by RetryHelper (1 == single attempt, no retry)
92* `batch_update/retry_timeout_count`: Number of executions of RetryHelper that
93ultimately timed out
Edwin Kempin516167d2016-11-25 14:42:11 +010094
David Pursehouse8ad11732016-08-29 15:00:14 +090095=== NoteDb
96
97* `notedb/update_latency`: NoteDb update latency by table.
98* `notedb/stage_update_latency`: Latency for staging updates to NoteDb by table.
99* `notedb/read_latency`: NoteDb read latency by table.
100* `notedb/parse_latency`: NoteDb parse latency by table.
101* `notedb/auto_rebuild_latency`: NoteDb auto-rebuilding latency by table.
102* `notedb/auto_rebuild_failure_count`: NoteDb auto-rebuilding attempts that
103failed by table.
Edwin Kempin69608c42017-03-30 17:20:22 +0200104* `notedb/external_id_update_count`: Total number of external ID updates.
105* `notedb/read_all_external_ids_latency`: Latency for reading all
106external ID's from NoteDb.
David Pursehouse8ad11732016-08-29 15:00:14 +0900107
Edwin Kempinf68598a2016-11-15 17:38:49 -0800108=== Reviewer Suggestion
109
110* `reviewer_suggestion/query_accounts`: Latency for querying accounts for
111reviewer suggestion.
112* `reviewer_suggestion/recommend_accounts`: Latency for recommending accounts
113for reviewer suggestion.
114* `reviewer_suggestion/load_accounts`: Latency for loading accounts for
115reviewer suggestion.
116* `reviewer_suggestion/query_groups`: Latency for querying groups for reviewer
117suggestion.
118
Dave Borowitz80fba942017-06-28 13:20:30 -0400119=== Repo Sequences
120
121* `sequence/next_id_latency`: Latency of requesting IDs from repo sequences.
122
David Pursehouse8ad11732016-08-29 15:00:14 +0900123=== Replication Plugin
124
125* `plugins/replication/replication_latency`: Time spent pushing to remote
126destination.
127* `plugins/replication/replication_delay`: Time spent waiting before pushing to
128remote destination.
129* `plugins/replication/replication_retries`: Number of retries when pushing to
130remote destination.
131
Minh Thai44e95ee2017-02-28 17:39:37 -0800132=== License
133
134* `license/cla_check_count`: Total number of CLA check requests.
135
David Pursehouse8ad11732016-08-29 15:00:14 +0900136GERRIT
137------
138Part of link:index.html[Gerrit Code Review]
139
140SEARCHBOX
141---------