blob: 7440634b3c2bf2be51e28bf63fe5247c05dcc96e [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.
46* `http/server/rest_api/error_count`: Rate of REST API calls by view.
47* `http/server/rest_api/server_latency`: REST API call latency by view.
48* `http/server/rest_api/response_bytes`: Size of REST API response on network
49(may be gzip compressed) by view.
50
51=== Query
52
53* `query/query_latency`: Successful query latency, accumulated over the life
54of the process.
55
56=== SSH sessions
57
58* `sshd/sessions/connected`: Number of currently connected SSH sessions.
59* `sshd/sessions/created`: Rate of new SSH sessions.
60* `sshd/sessions/authentication_failures`: Rate of SSH authentication failures.
61
62=== SQL connections
63
64* `sql/connection_pool/connections`: SQL database connections.
65
Han-Wen Nienhuys61f65652017-06-12 19:46:04 +020066=== Topics
67
68* `topic/cross_project_submit`: number of cross-project topic submissions.
69* `topic/cross_project_submit_completed`: number of cross-project
70topic submissions that concluded successfully.
71
David Pursehouse8ad11732016-08-29 15:00:14 +090072=== JGit
73
74* `jgit/block_cache/cache_used`: Bytes of memory retained in JGit block cache.
75* `jgit/block_cache/open_files`: File handles held open by JGit block cache.
76
77=== Git
78
79* `git/upload-pack/request_count`: Total number of git-upload-pack requests.
80* `git/upload-pack/phase_counting`: Time spent in the 'Counting...' phase.
81* `git/upload-pack/phase_compressing`: Time spent in the 'Compressing...' phase.
82* `git/upload-pack/phase_writing`: Time spent transferring bytes to client.
83* `git/upload-pack/pack_bytes`: Distribution of sizes of packs sent to clients.
84
Edwin Kempin516167d2016-11-25 14:42:11 +010085=== BatchUpdate
86
87* `batch_update/execute_change_ops`: BatchUpdate change update latency,
88excluding reindexing
89
David Pursehouse8ad11732016-08-29 15:00:14 +090090=== NoteDb
91
92* `notedb/update_latency`: NoteDb update latency by table.
93* `notedb/stage_update_latency`: Latency for staging updates to NoteDb by table.
94* `notedb/read_latency`: NoteDb read latency by table.
95* `notedb/parse_latency`: NoteDb parse latency by table.
96* `notedb/auto_rebuild_latency`: NoteDb auto-rebuilding latency by table.
97* `notedb/auto_rebuild_failure_count`: NoteDb auto-rebuilding attempts that
98failed by table.
Edwin Kempin69608c42017-03-30 17:20:22 +020099* `notedb/external_id_update_count`: Total number of external ID updates.
100* `notedb/read_all_external_ids_latency`: Latency for reading all
101external ID's from NoteDb.
David Pursehouse8ad11732016-08-29 15:00:14 +0900102
Edwin Kempinf68598a2016-11-15 17:38:49 -0800103=== Reviewer Suggestion
104
105* `reviewer_suggestion/query_accounts`: Latency for querying accounts for
106reviewer suggestion.
107* `reviewer_suggestion/recommend_accounts`: Latency for recommending accounts
108for reviewer suggestion.
109* `reviewer_suggestion/load_accounts`: Latency for loading accounts for
110reviewer suggestion.
111* `reviewer_suggestion/query_groups`: Latency for querying groups for reviewer
112suggestion.
113
David Pursehouse8ad11732016-08-29 15:00:14 +0900114=== Replication Plugin
115
116* `plugins/replication/replication_latency`: Time spent pushing to remote
117destination.
118* `plugins/replication/replication_delay`: Time spent waiting before pushing to
119remote destination.
120* `plugins/replication/replication_retries`: Number of retries when pushing to
121remote destination.
122
Minh Thai44e95ee2017-02-28 17:39:37 -0800123=== License
124
125* `license/cla_check_count`: Total number of CLA check requests.
126
David Pursehouse8ad11732016-08-29 15:00:14 +0900127GERRIT
128------
129Part of link:index.html[Gerrit Code Review]
130
131SEARCHBOX
132---------