-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add alert rules to metacontroller-operator based on the KF093 spec (#124
) * Add alert rules to metacontroller-operator based on the KF093 spec * Delete src/prometheus_alert_rules/unit_unavailable.rule * add cos integration tests for alert rules
- Loading branch information
Showing
5 changed files
with
116 additions
and
96 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
24 changes: 24 additions & 0 deletions
24
src/prometheus_alert_rules/KubeflowMetacontrollerOperatorServices.rules
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,24 @@ | ||
groups: | ||
- name: KubeflowMetacontrollerOperatorServices | ||
rules: | ||
- alert: KubeflowServiceDown | ||
expr: up{} < 1 | ||
for: 5m | ||
labels: | ||
severity: critical | ||
annotations: | ||
summary: "{{ $labels.juju_charm }} service is Down ({{ $labels.juju_model }}/{{ $labels.juju_unit }})" | ||
description: | | ||
One or more targets of {{ $labels.juju_charm }} charm are down on unit {{ $labels.juju_model }}/{{ $labels.juju_unit }}. | ||
LABELS = {{ $labels }} | ||
|
||
- alert: KubeflowServiceIsNotStable | ||
expr: avg_over_time(up{}[10m]) < 0.5 | ||
for: 0m | ||
labels: | ||
severity: warning | ||
annotations: | ||
summary: "{{ $labels.juju_charm }} service is not stable ({{ $labels.juju_model }}/{{ $labels.juju_unit }})" | ||
description: | | ||
{{ $labels.juju_charm }} unit {{ $labels.juju_model }}/{{ $labels.juju_unit }} has been unreachable at least 50% of the time over the last 10 minutes. | ||
LABELS = {{ $labels }} |
This file was deleted.
Oops, something went wrong.
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