Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
benzekrimaha committed Aug 20, 2024
1 parent 1e37f0a commit 6b160a0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions monitoring/pra/alerts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ groups:

- alert: DrResourcePausedWhileOtherRunning
expr: |
(sum(up{drSinkInstancejob="",job="${kafka_connect_src_job}", namespace="${namespace}"}) or vector(0))
(sum(up{drSinkInstance="",job="${kafka_connect_src_job}", namespace="${namespace}"}) or vector(0))
!=
(sum(up{drSinkInstancejob="${dr_sink_instance}", job="${kafka_connect_sink_job}", namespace="${namespace}"}) or vector(0))
(sum(up{drSinkInstance="${dr_sink_instance}", job="${kafka_connect_sink_job}", namespace="${namespace}"}) or vector(0))
for: 1m
labels:
severity: warning
Expand All @@ -39,7 +39,7 @@ groups:

- alert: DrResourcePausedForTooLong
expr: |
(sum(up{drSinkInstancejob="", job="${kafka_connect_src_job}", namespace="${namespace}"}) or vector(0)) == 0
(sum(up{drSinkInstance="", job="${kafka_connect_src_job}", namespace="${namespace}"}) or vector(0)) == 0
for: 5m
labels:
severity: warning
Expand All @@ -49,9 +49,9 @@ groups:

- alert: KafkaConnectOutageSource
expr: |
sum(rate(kafka_connect_task_error_total_record_errors{drSinkInstancejob="", job="${kafka_connect_src_job}"}[$__rate_interval])) > 0
sum(rate(kafka_connect_task_error_total_record_errors{drSinkInstance="", job="${kafka_connect_src_job}"}[$__rate_interval])) > 0
or
sum(rate(kafka_connect_task_error_total_record_failures{drSinkInstancejob="", job="${kafka_connect_src_job}"}[$__rate_interval])) > 0
sum(rate(kafka_connect_task_error_total_record_failures{drSinkInstance="", job="${kafka_connect_src_job}"}[$__rate_interval])) > 0
for: 1m
labels:
severity: critical
Expand All @@ -62,9 +62,9 @@ groups:

- alert: KafkaConnectOutageSink
expr: |
sum(rate(kafka_connect_task_error_total_record_errors{drSinkInstancejob="${dr_sink_instance}", job="${kafka_connect_sink_job}"}[$__rate_interval])) > 0
sum(rate(kafka_connect_task_error_total_record_errors{drSinkInstance="${dr_sink_instance}", job="${kafka_connect_sink_job}"}[$__rate_interval])) > 0
or
sum(rate(kafka_connect_task_error_total_record_failures{drSinkInstancejob="${dr_sink_instance}", job="${kafka_connect_sink_job}"}[$__rate_interval])) > 0
sum(rate(kafka_connect_task_error_total_record_failures{drSinkInstance="${dr_sink_instance}", job="${kafka_connect_sink_job}"}[$__rate_interval])) > 0
for: 1m
labels:
severity: critical
Expand Down

0 comments on commit 6b160a0

Please sign in to comment.