1234567891011121314151617181920212223242526272829303132 |
- [[metric]]
- context = "trans_xugu"
- labels = [ "server_time", "node_id" ]
- request = "SELECT CURR_T as server_time,NODEID node_id ,ACT_TRANS_NUM act ,LOCK_WAIT_N lwn FROM sys_run_info;"
-
- metricsdesc = { act = "当前节点活动事务数量", lwn ="锁等待数量" }
-
- metricstype = { act = "gauge" , lwn = "gauge"}
-
-
- [[metric]]
- context = "DISK_xugu"
- request = "SELECT CURR_T as server_time,NODEID node_id , DISK_W_BYTES / (1024 * 1024) AS data ,DISK_R_BYTES / (1024 * 1024) AS drb ,45 as count FROM sys_run_info;"
- metricsdesc = { data = "Histogram - sum total of all values in the data field." }
- metricstype = { data = "histogram" }
- labels = ["server_time", "node_id" ]
- metricsbuckets = { data = { le_20 = "20", le_40 = "40", le_60 = "60", le_80 = "80" } }
|