You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: manager/src/main/resources/define/app/app-mysql.yml
+199-9
Original file line number
Diff line number
Diff line change
@@ -149,20 +149,59 @@ metrics:
149
149
sql: show global status where Variable_name like 'thread%' or Variable_name = 'com_select' or Variable_name = 'com_insert' or Variable_name = 'com_update' or Variable_name = 'com_delete' or Variable_name = 'com_commit' or Variable_name = 'com_rollback' or Variable_name = 'questions' or Variable_name = 'uptime';
sql: select variable_name, variable_value from information_schema.global_status WHERE Variable_name like 'innodb%' UNION select variable_name, variable_value from information_schema.global_variables where Variable_name = 'innodb_buffer_pool_size';
sql: select variable_name, variable_value from information_schema.global_status WHERE Variable_name like '%connect%' or Variable_name = 'Aborted_clients' UNION select variable_name, variable_value from information_schema.global_variables where Variable_name like '%connect%';
380
+
url: ^_^url^_^
381
+
382
+
- name: thread
383
+
priority: 2
384
+
fields:
385
+
- field: threads_created
386
+
type: 0
387
+
- field: threads_connected
388
+
type: 0
389
+
- field: threads_cached
390
+
type: 0
391
+
- field: threads_running
392
+
type: 0
393
+
- field: thread_cache_size
394
+
type: 0
395
+
protocol: jdbc
396
+
jdbc:
397
+
# 主机host: ipv4 ipv6 域名
398
+
host: ^_^host^_^
399
+
# 端口
400
+
port: ^_^port^_^
401
+
platform: mysql
402
+
username: ^_^username^_^
403
+
password: ^_^password^_^
404
+
database: ^_^database^_^
405
+
timeout: ^_^timeout^_^
406
+
# SQL查询方式: oneRow, multiRow, columns
407
+
queryType: columns
408
+
# sql
409
+
sql: select variable_name, variable_value from information_schema.global_status WHERE Variable_name like 'thread%' UNION select variable_name, variable_value from information_schema.global_variables where Variable_name = 'thread_cache_size';
sql: show global status where Variable_name like 'innodb%';
443
+
sql: select variable_name, variable_value from information_schema.global_status WHERE Variable_name like 'table_%' UNION select variable_name, variable_value from information_schema.global_variables where Variable_name = 'table_open_cache';
0 commit comments