-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat : alert manager different rules
- Loading branch information
1 parent
c266349
commit ad0638c
Showing
7 changed files
with
77 additions
and
22 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
cloud/backend/alert-management/src/main/resources/application.properties
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,11 @@ | ||
groups: | ||
- name: acceleration-alerts | ||
rules: | ||
- alert: HighAcceleration | ||
expr: acceleration > 80 | ||
for: 5m | ||
labels: | ||
severity: warning | ||
annotations: | ||
summary: "High Acceleration Alert" | ||
description: "Acceleration exceeds 80 units." |
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,20 @@ | ||
groups: | ||
- name: glucose-alerts | ||
rules: | ||
- alert: HighGlucose | ||
expr: glucose > 180 | ||
for: 5m | ||
labels: | ||
severity: warning | ||
annotations: | ||
summary: "High Glucose Alert" | ||
description: "Glucose level is above 180 mg/dL." | ||
|
||
- alert: LowGlucose | ||
expr: glucose < 70 | ||
for: 5m | ||
labels: | ||
severity: warning | ||
annotations: | ||
summary: "Low Glucose Alert" | ||
description: "Glucose level is below 70 mg/dL." |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
groups: | ||
- name: heartrate-alerts | ||
rules: | ||
- alert: HighHeartRate | ||
expr: heartrate > 100 | ||
for: 5m | ||
labels: | ||
severity: warning | ||
annotations: | ||
summary: "High Heart Rate Alert" | ||
description: "Heart rate is above 100 bpm." | ||
|
||
- alert: LowHeartRate | ||
expr: heartrate < 50 | ||
for: 5m | ||
labels: | ||
severity: warning | ||
annotations: | ||
summary: "Low Heart Rate Alert" | ||
description: "Heart rate is below 50 bpm." |
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,20 @@ | ||
groups: | ||
- name: temperature-alerts | ||
rules: | ||
- alert: HighTemperature | ||
expr: temperature > 40 | ||
for: 5m | ||
labels: | ||
severity: warning | ||
annotations: | ||
summary: "High Temperature Alert" | ||
description: "Temperature is above 40°C." | ||
|
||
- alert: LowTemperature | ||
expr: temperature < 35 | ||
for: 5m | ||
labels: | ||
severity: warning | ||
annotations: | ||
summary: "Low Temperature Alert" | ||
description: "Temperature is below 35°C." |