-
Notifications
You must be signed in to change notification settings - Fork 183
/
metricdocs.go
341 lines (171 loc) · 15.7 KB
/
metricdocs.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
package mysql
// COUNTER(mysql_commands.admin_commands): The number of MySQL ADMIN commands executed
// COUNTER(mysql_commands.alter_db): The number of MySQL ALTER DB commands executed
// COUNTER(mysql_commands.alter_db_upgrade): The number of MySQL ALTER DB UPGRADE commands executed
// COUNTER(mysql_commands.alter_event): The number of MySQL ALTER EVENT commands executed
// COUNTER(mysql_commands.alter_function): The number of MySQL ALTER FUNCTION commands executed
// COUNTER(mysql_commands.alter_procedure): The number of MySQL ALTER PROCEDURE commands executed
// COUNTER(mysql_commands.alter_server): The number of MySQL ALTER SERVER commands executed
// COUNTER(mysql_commands.alter_table): The number of MySQL ALTER TABLE commands executed
// COUNTER(mysql_commands.alter_tablespace): The number of MySQL ALTER TABLESPACE commands executed
// COUNTER(mysql_commands.alter_user): The number of MySQL ALTER USER commands executed
// COUNTER(mysql_commands.analyze): The number of MySQL ANALYZE commands executed
// COUNTER(mysql_commands.assign_to_keycache): The number of MySQL ASSIGN TO KEYCACHE commands executed
// COUNTER(mysql_commands.begin): The number of MySQL BEGIN commands executed
// COUNTER(mysql_commands.binlog): The number of MySQL BINLOG commands executed
// COUNTER(mysql_commands.call_procedure): The number of MySQL CALL PROCEDURE commands executed
// COUNTER(mysql_commands.change_db): The number of MySQL CHANGE DB commands executed
// COUNTER(mysql_commands.change_master): The number of MySQL CHANGE MASTER commands executed
// COUNTER(mysql_commands.check): The number of MySQL CHECK commands executed
// COUNTER(mysql_commands.checksum): The number of MySQL CHECKSUM commands executed
// COUNTER(mysql_commands.commit): The number of MySQL COMMIT commands executed
// COUNTER(mysql_commands.create_db): The number of MySQL CREATE DB commands executed
// COUNTER(mysql_commands.create_event): The number of MySQL CREATE EVENT commands executed
// COUNTER(mysql_commands.create_function): The number of MySQL CREATE FUNCTION commands executed
// COUNTER(mysql_commands.create_index): The number of MySQL CREATE INDEX commands executed
// COUNTER(mysql_commands.create_procedure): The number of MySQL CREATE PROCEDURE commands executed
// COUNTER(mysql_commands.create_server): The number of MySQL CREATE SERVER commands executed
// COUNTER(mysql_commands.create_table): The number of MySQL CREATE TABLE commands executed
// COUNTER(mysql_commands.create_trigger): The number of MySQL CREATE TRIGGER commands executed
// COUNTER(mysql_commands.create_udf): The number of MySQL CREATE UDF commands executed
// COUNTER(mysql_commands.create_user): The number of MySQL CREATE USER commands executed
// COUNTER(mysql_commands.create_view): The number of MySQL CREATE VIEW commands executed
// COUNTER(mysql_commands.dealloc_sql): The number of MySQL DEALLOC SQL commands executed
// COUNTER(mysql_commands.delete): The number of MySQL DELETE commands executed
// COUNTER(mysql_commands.delete_multi): The number of MySQL DELETE MULTI commands executed
// COUNTER(mysql_commands.do): The number of MySQL DO commands executed
// COUNTER(mysql_commands.drop_db): The number of MySQL DROP DB commands executed
// COUNTER(mysql_commands.drop_event): The number of MySQL DROP EVENT commands executed
// COUNTER(mysql_commands.drop_function): The number of MySQL DROP FUNCTION commands executed
// COUNTER(mysql_commands.drop_index): The number of MySQL DROP INDEX commands executed
// COUNTER(mysql_commands.drop_procedure): The number of MySQL DROP PROCEDURE commands executed
// COUNTER(mysql_commands.drop_server): The number of MySQL DROP SERVER commands executed
// COUNTER(mysql_commands.drop_table): The number of MySQL DROP TABLE commands executed
// COUNTER(mysql_commands.drop_trigger): The number of MySQL DROP TRIGGER commands executed
// COUNTER(mysql_commands.drop_user): The number of MySQL DROP USER commands executed
// COUNTER(mysql_commands.drop_view): The number of MySQL DROP VIEW commands executed
// COUNTER(mysql_commands.empty_query): The number of MySQL EMPTY QUERY commands executed
// COUNTER(mysql_commands.execute_sql): The number of MySQL EXECUTE SQL commands executed
// COUNTER(mysql_commands.flush): The number of MySQL FLUSH commands executed
// COUNTER(mysql_commands.get_diagnostics): The number of MySQL GET DIAGNOSTICS commands executed
// COUNTER(mysql_commands.grant): The number of MySQL GRANT commands executed
// COUNTER(mysql_commands.ha_close): The number of MySQL HA CLOSE commands executed
// COUNTER(mysql_commands.ha_open): The number of MySQL HA OPEN commands executed
// COUNTER(mysql_commands.ha_read): The number of MySQL HA READ commands executed
// COUNTER(mysql_commands.help): The number of MySQL HELP commands executed
// COUNTER(mysql_commands.insert): The number of MySQL INSERT commands executed
// COUNTER(mysql_commands.insert_select): The number of MySQL INSERT SELECT commands executed
// COUNTER(mysql_commands.install_plugin): The number of MySQL INSTALL PLUGIN commands executed
// COUNTER(mysql_commands.kill): The number of MySQL KILL commands executed
// COUNTER(mysql_commands.load): The number of MySQL LOAD commands executed
// COUNTER(mysql_commands.lock_tables): The number of MySQL LOCK TABLES commands executed
// COUNTER(mysql_commands.optimize): The number of MySQL OPTIMIZE commands executed
// COUNTER(mysql_commands.preload_keys): The number of MySQL PRELOAD KEYS commands executed
// COUNTER(mysql_commands.prepare_sql): The number of MySQL PREPARE SQL commands executed
// COUNTER(mysql_commands.purge): The number of MySQL PURGE commands executed
// COUNTER(mysql_commands.purge_before_date): The number of MySQL PURGE BEFORE DATE commands executed
// COUNTER(mysql_commands.release_savepoint): The number of MySQL RELEASE SAVEPOINT commands executed
// COUNTER(mysql_commands.rename_table): The number of MySQL RENAME TABLE commands executed
// COUNTER(mysql_commands.rename_user): The number of MySQL RENAME USER commands executed
// COUNTER(mysql_commands.repair): The number of MySQL REPAIR commands executed
// COUNTER(mysql_commands.replace): The number of MySQL REPLACE commands executed
// COUNTER(mysql_commands.replace_select): The number of MySQL REPLACE SELECT commands executed
// COUNTER(mysql_commands.reset): The number of MySQL RESET commands executed
// COUNTER(mysql_commands.resignal): The number of MySQL RESIGNAL commands executed
// COUNTER(mysql_commands.revoke): The number of MySQL REVOKE commands executed
// COUNTER(mysql_commands.revoke_all): The number of MySQL REVOKE ALL commands executed
// COUNTER(mysql_commands.rollback): The number of MySQL ROLLBACK commands executed
// COUNTER(mysql_commands.rollback_to_savepoint): The number of MySQL ROLLBACK TO SAVEPOINT commands executed
// COUNTER(mysql_commands.savepoint): The number of MySQL SAVEPOINT commands executed
// COUNTER(mysql_commands.select): The number of MySQL SELECT commands executed
// COUNTER(mysql_commands.set_option): The number of MySQL SET OPTION commands executed
// COUNTER(mysql_commands.show_binlog_events): The number of MySQL SHOW BINLOG EVENTS commands executed
// COUNTER(mysql_commands.show_binlogs): The number of MySQL SHOW BINLOGS commands executed
// COUNTER(mysql_commands.show_charsets): The number of MySQL SHOW CHARSETS commands executed
// COUNTER(mysql_commands.show_collations): The number of MySQL SHOW COLLATIONS commands executed
// COUNTER(mysql_commands.show_create_db): The number of MySQL SHOW CREATE DB commands executed
// COUNTER(mysql_commands.show_create_event): The number of MySQL SHOW CREATE EVENT commands executed
// COUNTER(mysql_commands.show_create_func): The number of MySQL SHOW CREATE FUNC commands executed
// COUNTER(mysql_commands.show_create_proc): The number of MySQL SHOW CREATE PROC commands executed
// COUNTER(mysql_commands.show_create_table): The number of MySQL SHOW CREATE TABLE commands executed
// COUNTER(mysql_commands.show_create_trigger): The number of MySQL SHOW CREATE TRIGGER commands executed
// COUNTER(mysql_commands.show_databases): The number of MySQL SHOW DATABASES commands executed
// COUNTER(mysql_commands.show_engine_logs): The number of MySQL SHOW ENGINE LOGS commands executed
// COUNTER(mysql_commands.show_engine_mutex): The number of MySQL SHOW ENGINE MUTEX commands executed
// COUNTER(mysql_commands.show_engine_status): The number of MySQL SHOW ENGINE STATUS commands executed
// COUNTER(mysql_commands.show_errors): The number of MySQL SHOW ERRORS commands executed
// COUNTER(mysql_commands.show_events): The number of MySQL SHOW EVENTS commands executed
// COUNTER(mysql_commands.show_fields): The number of MySQL SHOW FIELDS commands executed
// COUNTER(mysql_commands.show_function_code): The number of MySQL SHOW FUNCTION CODE commands executed
// COUNTER(mysql_commands.show_function_status): The number of MySQL SHOW FUNCTION STATUS commands executed
// COUNTER(mysql_commands.show_grants): The number of MySQL SHOW GRANTS commands executed
// COUNTER(mysql_commands.show_keys): The number of MySQL SHOW KEYS commands executed
// COUNTER(mysql_commands.show_master_status): The number of MySQL SHOW MASTER STATUS commands executed
// COUNTER(mysql_commands.show_open_tables): The number of MySQL SHOW OPEN TABLES commands executed
// COUNTER(mysql_commands.show_plugins): The number of MySQL SHOW PLUGINS commands executed
// COUNTER(mysql_commands.show_privileges): The number of MySQL SHOW PRIVILEGES commands executed
// COUNTER(mysql_commands.show_procedure_code): The number of MySQL SHOW PROCEDURE CODE commands executed
// COUNTER(mysql_commands.show_procedure_status): The number of MySQL SHOW PROCEDURE STATUS commands executed
// COUNTER(mysql_commands.show_processlist): The number of MySQL SHOW PROCESSLIST commands executed
// COUNTER(mysql_commands.show_profile): The number of MySQL SHOW PROFILE commands executed
// COUNTER(mysql_commands.show_profiles): The number of MySQL SHOW PROFILES commands executed
// COUNTER(mysql_commands.show_relaylog_events): The number of MySQL SHOW RELAYLOG EVENTS commands executed
// COUNTER(mysql_commands.show_slave_hosts): The number of MySQL SHOW SLAVE HOSTS commands executed
// COUNTER(mysql_commands.show_slave_status): The number of MySQL SHOW SLAVE STATUS commands executed
// COUNTER(mysql_commands.show_status): The number of MySQL SHOW STATUS commands executed
// COUNTER(mysql_commands.show_storage_engines): The number of MySQL SHOW STORAGE ENGINES commands executed
// COUNTER(mysql_commands.show_table_status): The number of MySQL SHOW TABLE STATUS commands executed
// COUNTER(mysql_commands.show_tables): The number of MySQL SHOW TABLES commands executed
// COUNTER(mysql_commands.show_triggers): The number of MySQL SHOW TRIGGERS commands executed
// COUNTER(mysql_commands.show_variables): The number of MySQL SHOW VARIABLES commands executed
// COUNTER(mysql_commands.show_warnings): The number of MySQL SHOW WARNINGS commands executed
// COUNTER(mysql_commands.signal): The number of MySQL SIGNAL commands executed
// COUNTER(mysql_commands.slave_start): The number of MySQL SLAVE START commands executed
// COUNTER(mysql_commands.slave_stop): The number of MySQL SLAVE STOP commands executed
// COUNTER(mysql_commands.truncate): The number of MySQL TRUNCATE commands executed
// COUNTER(mysql_commands.uninstall_plugin): The number of MySQL UNINSTALL PLUGIN commands executed
// COUNTER(mysql_commands.unlock_tables): The number of MySQL UNLOCK TABLES commands executed
// COUNTER(mysql_commands.update): The number of MySQL UPDATE commands executed
// COUNTER(mysql_commands.update_multi): The number of MySQL UPDATE MULTI commands executed
// COUNTER(mysql_commands.xa_commit): The number of MySQL XA COMMIT commands executed
// COUNTER(mysql_commands.xa_end): The number of MySQL XA END commands executed
// COUNTER(mysql_commands.xa_prepare): The number of MySQL XA PREPARE commands executed
// COUNTER(mysql_commands.xa_recover): The number of MySQL XA RECOVER commands executed
// COUNTER(mysql_commands.xa_rollback): The number of MySQL XA ROLLBACK commands executed
// COUNTER(mysql_commands.xa_start): The number of MySQL XA START commands executed
// COUNTER(mysql_handler.commit): The number of internal COMMIT statements.
// COUNTER(mysql_handler.delete): The number of times rows have been deleted from tables.
// COUNTER(mysql_handler.prepare): The number of times "Prepare" phase was executed in the two-phase commit operations.
// COUNTER(mysql_handler.read_first): The number of times the first entry in an index was read.
// COUNTER(mysql_handler.read_key): The number of times a row was read based on a key.
// COUNTER(mysql_handler.read_next): The number of requests to read the next row in key order.
// COUNTER(mysql_handler.read_prev): The number of requests to read the previous row in key order.
// COUNTER(mysql_handler.read_rnd): The number of requests that read a random fixed position in the data file.
// COUNTER(mysql_handler.read_rnd_next): The number of requests for the next row in the data file.
// COUNTER(mysql_handler.rollback): The number of requests for a rollback operation on the storage engine.
// COUNTER(mysql_handler.savepoint): The number of requests to place a savepoint on the storage engine. This can be used to roll back later.
// COUNTER(mysql_handler.savepoint_rollback): The number of requests to roll back to a savepoint.
// COUNTER(mysql_handler.update): The number of requests to update a row in a table.
// COUNTER(mysql_handler.write): The number of requests to insert a row in a table.
// COUNTER(mysql_locks.immediate): The number of MySQL table locks which were granted immediately.
// COUNTER(mysql_locks.waited): The number of MySQL table locks which had to wait before being granted.
// COUNTER(mysql_select.full_join): The number of joins that perform full table scans.
// COUNTER(mysql_select.full_range_join): The number of joins that used a range search on a reference table.
// COUNTER(mysql_select.range): The number of joins that used a range on the first table.
// COUNTER(mysql_select.range_check): The number of joins without keys that check for key usage after each row.
// COUNTER(mysql_sort.merge_passes): The number of merge passes done by the sorting algorithm.
// COUNTER(mysql_sort.range): The number of sorts that were done using ranges.
// COUNTER(mysql_sort.rows): The number of rows that were sorted.
// COUNTER(mysql_sort.scan): The number of sorts that were done by scanning the table.
// CUMULATIVE(cache_result.qcache-hits): The number of hits on MySQL query cache.
// CUMULATIVE(cache_result.qcache-inserts): The number of inserts into MySQL query cache.
// CUMULATIVE(cache_results.qcache-not_cached): The number of MySQL queries that were not cacheable or not cached.
// CUMULATIVE(cache_results.qcache-prunes): The number of queries that were pruned from query cache because of low-memory condition.
// CUMULATIVE(mysql_octets.rx): The number of bytes received by MySQL server from all clients.
// CUMULATIVE(mysql_octets.tx): The number of bytes sent by MySQL server to all clients.
// CUMULATIVE(total_threads.created): The total number of threads created by MySQL for client connections. A MySQL thread corresponds to a single MySQL connection.
// GAUGE(cache_results.cache_size): MySQL Qcache Size
// GAUGE(cache_size.qcache): The number of queries in MySQL query cache.
// GAUGE(threads.cached): The number of threads cached by MySQL for re-use on a new client connection. A MySQL thread corresponds to a single MySQL connection.
// GAUGE(threads.connected): The number of currently open MySQL connections. A MySQL thread corresponds to a single MySQL connection.
// GAUGE(threads.running): The number of MySQL threads that are processing a query. A MySQL thread corresponds to a single MySQL connection.