提交 a62b8bc4 编写于 作者: X xueran

fix some config

上级 f028935e
...@@ -11,9 +11,9 @@ obInputBasic: &obInputBasic ...@@ -11,9 +11,9 @@ obInputBasic: &obInputBasic
defaultConditionValues: defaultConditionValues:
ob_svr_ip: ${monagent.host.ip} ob_svr_ip: ${monagent.host.ip}
ob_svr_port: ${monagent.ob.rpc.port} ob_svr_port: ${monagent.ob.rpc.port}
ob_is_rootservice: true ob_is_rootservice: false
ob_is_v4: true ob_is_v4: false
ob_is_v3: true ob_is_v3: false
collectConfig: collectConfig:
- sql: select ob_version() REGEXP '^4' as ob_is_v4 - sql: select ob_version() REGEXP '^4' as ob_is_v4
...@@ -30,13 +30,19 @@ obInputBasic: &obInputBasic ...@@ -30,13 +30,19 @@ obInputBasic: &obInputBasic
is_rootserver: with_rootserver is_rootserver: with_rootserver
conditionValues: conditionValues:
ob_is_rootservice: with_rootserver ob_is_rootservice: with_rootserver
subConfig: condition: ob_is_v3
- sql: select /*+ MONITOR_AGENT READ_CONSISTENCY(WEAK) */ with_rootserver from __all_server where svr_ip = ? and svr_port = ? params: [ ob_svr_ip, ob_svr_port ]
params: [ ob_svr_ip, ob_svr_port ] sql: select /*+ MONITOR_AGENT READ_CONSISTENCY(WEAK) */ with_rootserver from __all_server where svr_ip = ? and svr_port = ?
condition: ob_is_v3
- sql: select (case when with_rootserver='YES' then 1 else 0 end) as with_rootserver from DBA_OB_SERVERS where svr_ip = ? and svr_port = ? - name: ob_role
params: [ ob_svr_ip, ob_svr_port ] sqlSlowThreshold: 100ms
condition: ob_is_v4 metrics:
is_rootserver: with_rootserver
conditionValues:
ob_is_rootservice: with_rootserver
condition: ob_is_v4
params: [ ob_svr_ip, ob_svr_port ]
sql: select (case when with_rootserver='YES' then 1 else 0 end) as with_rootserver from DBA_OB_SERVERS where svr_ip = ? and svr_port = ?
- sql: select /*+ MONITOR_AGENT READ_CONSISTENCY(WEAK) */ tenant_name, cache_name, cache_size from __all_virtual_kvcache_info, __all_tenant where __all_tenant.tenant_id = __all_virtual_kvcache_info.tenant_id and svr_ip = ? and svr_port = ? - sql: select /*+ MONITOR_AGENT READ_CONSISTENCY(WEAK) */ tenant_name, cache_name, cache_size from __all_virtual_kvcache_info, __all_tenant where __all_tenant.tenant_id = __all_virtual_kvcache_info.tenant_id and svr_ip = ? and svr_port = ?
params: [ob_svr_ip, ob_svr_port] params: [ob_svr_ip, ob_svr_port]
name: ob_cache name: ob_cache
...@@ -109,7 +115,7 @@ obInputBasic: &obInputBasic ...@@ -109,7 +115,7 @@ obInputBasic: &obInputBasic
metrics: metrics:
stat: value stat: value
current_timestamp: current current_timestamp: current
- sql: select /*+ MONITOR_AGENT READ_CONSISTENCY(WEAK) */ tenant_name, mem_used, access_count, hit_count from v$plan_cache_stat join __all_tenant on v$plan_cache_stat.tenant_id = __all_tenant.tenant_id - sql: select /*+ MONITOR_AGENT READ_CONSISTENCY(WEAK) */ tenant_name, mem_used, access_count, hit_count from v$plan_cache_stat join __all_tenant on v$plan_cache_stat.tenant_id = __all_tenant.tenant_id group by tenant_name
name: ob_plan_cache name: ob_plan_cache
condition: ob_is_v3 condition: ob_is_v3
tags: tags:
...@@ -118,8 +124,8 @@ obInputBasic: &obInputBasic ...@@ -118,8 +124,8 @@ obInputBasic: &obInputBasic
memory_bytes: mem_used memory_bytes: mem_used
access_total: access_count access_total: access_count
hit_total: hit_count hit_total: hit_count
- sql: select /*+ MONITOR_AGENT READ_CONSISTENCY(WEAK) */ tenant_name, mem_used, access_count, hit_count from V$OB_PLAN_CACHE_STAT join __all_tenant on V$OB_PLAN_CACHE_STAT.tenant_id = __all_tenant.tenant_id - sql: select /*+ MONITOR_AGENT READ_CONSISTENCY(WEAK) */ tenant_name, mem_used, access_count, hit_count from V$OB_PLAN_CACHE_STAT join __all_tenant on V$OB_PLAN_CACHE_STAT.tenant_id = __all_tenant.tenant_id group by tenant_name
name: ob_plan_cache name: ob_plan_cache
condition: ob_is_v4 condition: ob_is_v4
tags: tags:
tenant_name: tenant_name tenant_name: tenant_name
...@@ -158,9 +164,9 @@ obInputExtra: &obInputExtra ...@@ -158,9 +164,9 @@ obInputExtra: &obInputExtra
defaultConditionValues: defaultConditionValues:
ob_svr_ip: ${monagent.host.ip} ob_svr_ip: ${monagent.host.ip}
ob_svr_port: ${monagent.ob.rpc.port} ob_svr_port: ${monagent.ob.rpc.port}
ob_is_rootservice: true ob_is_rootservice: false
ob_is_v4: true ob_is_v4: false
ob_is_v3: true ob_is_v3: false
collectConfig: collectConfig:
- sql: select ob_version() REGEXP '^4' as ob_is_v4 - sql: select ob_version() REGEXP '^4' as ob_is_v4
name: ob_is_v4 name: ob_is_v4
...@@ -176,13 +182,20 @@ obInputExtra: &obInputExtra ...@@ -176,13 +182,20 @@ obInputExtra: &obInputExtra
is_rootserver: with_rootserver is_rootserver: with_rootserver
conditionValues: conditionValues:
ob_is_rootservice: with_rootserver ob_is_rootservice: with_rootserver
subConfig: condition: ob_is_v3
- sql: select /*+ MONITOR_AGENT READ_CONSISTENCY(WEAK) */ with_rootserver from __all_server where svr_ip = ? and svr_port = ? params: [ ob_svr_ip, ob_svr_port ]
params: [ ob_svr_ip, ob_svr_port ] sql: select /*+ MONITOR_AGENT READ_CONSISTENCY(WEAK) */ with_rootserver from __all_server where svr_ip = ? and svr_port = ?
condition: ob_is_v3
- sql: select (case when with_rootserver='YES' then 1 else 0 end) as with_rootserver from DBA_OB_SERVERS where svr_ip = ? and svr_port = ? - name: ob_role
params: [ ob_svr_ip, ob_svr_port ] sqlSlowThreshold: 100ms
condition: ob_is_v4 metrics:
is_rootserver: with_rootserver
conditionValues:
ob_is_rootservice: with_rootserver
condition: ob_is_v4
params: [ ob_svr_ip, ob_svr_port ]
sql: select (case when with_rootserver='YES' then 1 else 0 end) as with_rootserver from DBA_OB_SERVERS where svr_ip = ? and svr_port = ?
- sql: select /*+ MONITOR_AGENT READ_CONSISTENCY(WEAK) */ count(*) as cnt from v$unit - sql: select /*+ MONITOR_AGENT READ_CONSISTENCY(WEAK) */ count(*) as cnt from v$unit
name: ob_unit name: ob_unit
metrics: metrics:
...@@ -261,12 +274,13 @@ obInputExtra: &obInputExtra ...@@ -261,12 +274,13 @@ obInputExtra: &obInputExtra
min_iops: min_iops min_iops: min_iops
max_disk_size_bytes: max_disk_size max_disk_size_bytes: max_disk_size
max_session_num: max_session_num max_session_num: max_session_num
- sql: select /*+ MONITOR_AGENT READ_CONSISTENCY(WEAK) */ tenant_name, tenant_id, name, gets, misses, sleeps, immediate_gets, immediate_misses, spin_gets, wait_time / 1000000 as wait_time from v$latch, __all_tenant where __all_tenant.tenant_id = v$latch.con_id - sql: select /*+ MONITOR_AGENT READ_CONSISTENCY(WEAK) */ tenant_name, tenant_id, `latch#` as latch_no, name, gets, misses, sleeps, immediate_gets, immediate_misses, spin_gets, wait_time / 1000000 as wait_time from v$latch, __all_tenant where __all_tenant.tenant_id = v$latch.con_id
name: ob_latch name: ob_latch
tags: tags:
tenant_name: tenant_name tenant_name: tenant_name
tenant_id: tenant_id tenant_id: tenant_id
name: name name: name
latch_no: latch_no
metrics: metrics:
get_total: gets get_total: gets
miss_total: misses miss_total: misses
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册