Skip to content

Commit c912f32

Browse files
fix alarm rule for tenant500 memory (#608)
1 parent e825fe8 commit c912f32

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

charts/oceanbase-dashboard/templates/prom-rule-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,16 +122,16 @@ data:
122122
description: 'Tenant {{ $labels.tenant_name }} of obcluster {{ $labels.ob_cluster_name }} has not frozen for {{ $value }} seconds.'
123123
summary: 'Tenant {{ $labels.tenant_name }} of obcluster {{ $labels.ob_cluster_name }} has not frozen for a long time.'
124124
- alert: tenant500_mem_hold_percent
125-
expr: 100 * sum(ob_tenant500_memory_hold_bytes) by (@GBLABELS) / sum(ob_server_resource_memory_bytes) by (@GBLABELS) > 95
125+
expr: 100 * sum(ob_tenant500_memory_hold_bytes) by (ob_cluster_name, obzone, svr_ip) / sum(ob_server_resource_memory_bytes) by (ob_cluster_name, obzone, svr_ip) > 95
126126
for: 3m
127127
labels:
128-
instance_type: obtenant
128+
instance_type: obcluster
129129
rule_name: tenant500_mem_hold_percent
130130
rule_type: builtin
131131
severity: warning
132132
annotations:
133-
description: 'Tenant 500 of obcluster {{ $labels.ob_cluster_name }} memory hold percent too high, {{ $value }}.'
134-
summary: 'Tenant 500 of obcluster {{ $labels.ob_cluster_name }} memory hold percent too high.'
133+
description: 'Tenant 500 on observer {{ $labels.svr_ip }} of obcluster {{ $labels.ob_cluster_name }} memory hold percent too high, {{ $value }}.'
134+
summary: 'Tenant 500 on observer {{ $labels.svr_ip }} of obcluster {{ $labels.ob_cluster_name }} memory hold percent too high.'
135135
- alert: tenant_task_timeout
136136
expr: max(ob_tenant_task_max_duration_seconds) by (ob_cluster_name, tenant_name) > 10800
137137
for: 1m

0 commit comments

Comments
 (0)