-
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.
Merge branch 'main' of https://github.com/StartUpNationLabs/poulet
- Loading branch information
Showing
24 changed files
with
343 additions
and
93 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
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
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,52 @@ | ||
services: | ||
alert-management: | ||
build: | ||
context: ./ | ||
dockerfile: ./alert-management/src/main/docker/Dockerfile.multistage | ||
container_name: alert-management | ||
ports: | ||
- 0.0.0.0:8082:8082 | ||
networks: | ||
- poulet_internal | ||
- internal | ||
|
||
analyse-haut-niveau-management: | ||
build: | ||
context: ./ | ||
dockerfile: ./analyse-haut-niveau-management/src/main/docker/Dockerfile.multistage | ||
container_name: analyse-haut-niveau-management | ||
ports: | ||
- 0.0.0.0:8084:8084 | ||
networks: | ||
- poulet_internal | ||
- internal | ||
environment: | ||
- DB_URL=mongodb://mongodb:27017 | ||
|
||
|
||
patient-management: | ||
build: | ||
context: ./ | ||
dockerfile: ./patient-management/src/main/docker/Dockerfile.multistage | ||
container_name: patient-management | ||
ports: | ||
- 0.0.0.0:8083:8083 | ||
networks: | ||
- poulet_internal | ||
- internal | ||
|
||
|
||
mongodb: | ||
image: mongodb/mongodb-community-server:7.0.2-ubi8 | ||
volumes: | ||
- /etc/localtime:/etc/localtime:ro | ||
ports: | ||
- 0.0.0.0:27017:27017 | ||
networks: | ||
- internal | ||
- poulet_internal | ||
|
||
networks: | ||
internal: | ||
poulet_internal: | ||
external: true |
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
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,30 @@ | ||
groups: | ||
- name: glucose-deriv-alerts | ||
rules: | ||
- alert: RapidIncreaseGlucose | ||
expr: deriv(glucose[5m]) > 10 | ||
for: 1m | ||
labels: | ||
severity: "MEDIUM" | ||
type: "glucose_deriv" | ||
gatewayId: "671aaecbbf1f103b28e58788" | ||
value: "{{ $value }}" | ||
|
||
annotations: | ||
summary: "Rapid Increase in Glucose Alert" | ||
description: "The glucose level is increasing rapidly (rate of change > 10 mg/dL per 5 minutes)." | ||
message: "Current rate of glucose change: {{ $value }} mg/dL per 5 minutes" | ||
|
||
- alert: RapidDecreaseGlucose | ||
expr: deriv(glucose[5m]) < -10 | ||
for: 1m | ||
labels: | ||
severity: "MEDIUM" | ||
type: "glucose_deriv" | ||
gatewayId: "671aaecbbf1f103b28e58788" | ||
value: "{{ $value }}" | ||
|
||
annotations: | ||
summary: "Rapid Decrease in Glucose Alert" | ||
description: "The glucose level is decreasing rapidly (rate of change < -10 mg/dL per 5 minutes)." | ||
message: "Current rate of glucose change: {{ $value }} mg/dL per 5 minutes" |
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,30 @@ | ||
groups: | ||
- name: heartrate-deriv-alerts | ||
rules: | ||
- alert: RapidIncreaseHeartRate | ||
expr: deriv(heartrate[5m]) > 15 | ||
for: 1m | ||
labels: | ||
severity: "MEDIUM" | ||
type: "heartrate_deriv" | ||
gatewayId: "671aaecbbf1f103b28e58788" | ||
value: "{{ $value }}" | ||
|
||
annotations: | ||
summary: "Rapid Increase in Heart Rate Alert" | ||
description: "The heart rate is increasing rapidly (rate of change > 15 bpm per 5 minutes)." | ||
message: "Current rate of heart rate change: {{ $value }} bpm per 5 minutes" | ||
|
||
- alert: RapidDecreaseHeartRate | ||
expr: deriv(heartrate[5m]) < -15 | ||
for: 1m | ||
labels: | ||
severity: "HIGH" | ||
type: "heartrate_deriv" | ||
gatewayId: "671aaecbbf1f103b28e58788" | ||
value: "{{ $value }}" | ||
|
||
annotations: | ||
summary: "Rapid Decrease in Heart Rate Alert" | ||
description: "The heart rate is decreasing rapidly (rate of change < -15 bpm per 5 minutes)." | ||
message: "Current rate of heart rate change: {{ $value }} bpm per 5 minutes" |
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,30 @@ | ||
groups: | ||
- name: temperature-deriv-alerts | ||
rules: | ||
- alert: RapidIncreaseTemperature | ||
expr: deriv(temperature[5m]) > 0.5 | ||
for: 1m | ||
labels: | ||
severity: "MEDIUM" | ||
type: "temperature_deriv" | ||
gatewayId: "671aaecbbf1f103b28e58788" | ||
value: "{{ $value }}" | ||
|
||
annotations: | ||
summary: "Rapid Increase in Temperature Alert" | ||
description: "The temperature is increasing rapidly (rate of change > 0.5°C per 5 minutes)." | ||
message: "Current rate of temperature change: {{ $value }}°C per 5 minutes" | ||
|
||
- alert: RapidDecreaseTemperature | ||
expr: deriv(temperature[5m]) < -0.5 | ||
for: 1m | ||
labels: | ||
severity: "MEDIUM" | ||
type: "temperature_deriv" | ||
gatewayId: "671aaecbbf1f103b28e58788" | ||
value: "{{ $value }}" | ||
|
||
annotations: | ||
summary: "Rapid Decrease in Temperature Alert" | ||
description: "The temperature is decreasing rapidly (rate of change < -0.5°C per 5 minutes)." | ||
message: "Current rate of temperature change: {{ $value }}°C per 5 minutes" |
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
Oops, something went wrong.