diff --git a/etc/prometheus_config/prometheus.yaml b/etc/prometheus_config/prometheus.yaml index 7869f9fe0113435313552fe05a84a570954deb7f..7579db1412524d12cfc8491bc94f8e9ae3bebd1e 100644 --- a/etc/prometheus_config/prometheus.yaml +++ b/etc/prometheus_config/prometheus.yaml @@ -3,7 +3,7 @@ global: evaluation_interval: 10s rule_files: - - "rules/*rules.yml" + - "rules/*rules.yaml" scrape_configs: - job_name: prometheus diff --git a/etc/prometheus_config/rules/ob_rules.yaml b/etc/prometheus_config/rules/ob_rules.yaml index 94abf1dd03c707f849a01702240b9b8d9e5da597..eb9ad3248202b16ca186f4be15c5a0ce4ef33659 100644 --- a/etc/prometheus_config/rules/ob_rules.yaml +++ b/etc/prometheus_config/rules/ob_rules.yaml @@ -38,7 +38,7 @@ groups: description: "{{ $labels.ob_cluster_name }} {{ $labels.ob_cluster_id }} error index table count is {{ $value }}" - 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 labels: serverity: page @@ -47,7 +47,7 @@ groups: description: "{{ $labels.ob_cluster_name }} {{ $labels.ob_cluster_id }} merge time out" - 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 labels: serverity: page