Skip to content

Commit f87113f

Browse files
author
zhongming Fan
committed
dm: add metric dm_exporter_deadlock_count
1 parent 8682651 commit f87113f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

weops/pipe-tools/bk_pkg/dm/dm.collector.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,14 @@ metrics:
6565
query: |
6666
SELECT count(*) AS LOCK_BLOCKS FROM V$LOCK WHERE blocked = 1
6767
68+
- metric_name: dm_exporter_deadlock_count
69+
type: gauge
70+
help: '死锁累计数量'
71+
values:
72+
- DEADLOCK_COUNT
73+
query: |
74+
SELECT COUNT(*) AS DEADLOCK_COUNT FROM v$deadlock_history
75+
6876
# 表空间
6977
- metric_name: dm_exporter_tablespace_total_size
7078
type: gauge

0 commit comments

Comments
 (0)