From f01d3a3a677720120ba1ac82ee7a25f2ac289aa1 Mon Sep 17 00:00:00 2001 From: "wangzelin.wzl" Date: Wed, 6 Jul 2022 10:44:36 +0800 Subject: [PATCH] add query_response_time metrics --- etc/module_config/monitor_ob.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/etc/module_config/monitor_ob.yaml b/etc/module_config/monitor_ob.yaml index f250a6b..33d62d6 100644 --- a/etc/module_config/monitor_ob.yaml +++ b/etc/module_config/monitor_ob.yaml @@ -90,6 +90,14 @@ obInputBasic: &obInputBasic metrics: wait_total: total_waits wait_seconds_total: time_waited + - sql: select /*+ MONITOR_AGENT READ_CONSISTENCY(WEAK) */ tenant_name, response_time / 1000000 as response_time, count, total from __all_virtual_query_response_time join __all_tenant on __all_virtual_query_response_time.tenant_id = __all_tenant.tenant_id + name: ob_query_response_time + tags: + tenant_name: tenant_name + le: response_time + metrics: + count: count + total: total obInputExtra: &obInputExtra plugin: mysqlTableInput -- GitLab