提交 e55a0705 编写于 作者: C chris-sun-star

fix alarm config

上级 de6adad6
...@@ -3,7 +3,7 @@ global: ...@@ -3,7 +3,7 @@ global:
evaluation_interval: 10s evaluation_interval: 10s
rule_files: rule_files:
- "rules/*rules.yml" - "rules/*rules.yaml"
scrape_configs: scrape_configs:
- job_name: prometheus - job_name: prometheus
......
...@@ -38,7 +38,7 @@ groups: ...@@ -38,7 +38,7 @@ groups:
description: "{{ $labels.ob_cluster_name }} {{ $labels.ob_cluster_id }} error index table count is {{ $value }}" description: "{{ $labels.ob_cluster_name }} {{ $labels.ob_cluster_id }} error index table count is {{ $value }}"
- alert: ob_cluster_merge_timeout - alert: ob_cluster_merge_timeout
expr: max(ob_zone_stat{name="is_merge_timeout"}) by (ob_cluster_name, ob_cluster_id) = 1 expr: max(ob_zone_stat{name="is_merge_timeout"}) by (ob_cluster_name, ob_cluster_id) == 1
for: 1m for: 1m
labels: labels:
serverity: page serverity: page
...@@ -47,7 +47,7 @@ groups: ...@@ -47,7 +47,7 @@ groups:
description: "{{ $labels.ob_cluster_name }} {{ $labels.ob_cluster_id }} merge time out" description: "{{ $labels.ob_cluster_name }} {{ $labels.ob_cluster_id }} merge time out"
- alert: ob_cluster_merge_error - alert: ob_cluster_merge_error
expr: max(ob_zone_stat{name="is_merge_error"}) by (ob_cluster_name, ob_cluster_id) = 1 expr: max(ob_zone_stat{name="is_merge_error"}) by (ob_cluster_name, ob_cluster_id) == 1
for: 1m for: 1m
labels: labels:
serverity: page serverity: page
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册