-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
testutil/compose: add basic prometheus alerts (#719)
Adds a few basic alerts to compose prometheus. Note this is pure prometheus alerts, `alertmanager` hasn't been configured since it isn't required to group or silence or manage alerts over time. category: test ticket: #631
- Loading branch information
1 parent
62b3975
commit 78f8075
Showing
4 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
groups: | ||
- name: charon | ||
rules: | ||
- alert: Charon Down | ||
expr: up == 0 | ||
for: 15s | ||
annotations: | ||
description: "Ensures charon node(s) are available" | ||
|
||
- alert: Error Log Rate | ||
expr: app_log_error_total > 0 | ||
for: 15s | ||
annotations: | ||
description: "Ensures no error logs" | ||
|
||
- alert: Warn Log Rate | ||
expr: increase(app_log_warn_total[30s]) > 2 | ||
for: 15s | ||
annotations: | ||
description: "Ensures warning log rate is low" | ||
|
||
- alert: Validator API Error Rate | ||
expr: increase(core_validatorapi_request_error_total{endpoint!="proxy"}[30s]) > 1 | ||
for: 15s | ||
annotations: | ||
description: "Ensures validator api error rate is very low" | ||
|
||
- alert: Proxy API Error Rate | ||
expr: increase(core_validatorapi_request_error_total{endpoint="proxy"}[30s]) > 5 | ||
for: 15s | ||
annotations: | ||
description: "Ensures proxy api error rate is low" | ||
|
||
- alert: Broadcast Duty Rate | ||
expr: increase(core_bcast_broadcast_total[30s]) < 0.5 | ||
for: 15s | ||
annotations: | ||
description: "Ensures broadcast duty rate is not low / is high" | ||
|
||
- alert: Outstanding Duty Rate | ||
expr: core_bcast_broadcast_total - core_scheduler_duty_total > 50 | ||
for: 15s | ||
annotations: | ||
description: "Ensures outstanding duties remain low" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters