Skip to content

Commit

Permalink
deplloy front fix
Browse files Browse the repository at this point in the history
  • Loading branch information
YvannPONCE committed Nov 12, 2024
2 parents d5c8092 + efd1cec commit 5015101
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 22 deletions.
2 changes: 1 addition & 1 deletion charts/poulet/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.78
version: 0.1.80

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
24 changes: 3 additions & 21 deletions charts/poulet/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ prometheus:
tls: [ ]
alertmanager:
enabled: true

config:
route:
receiver: 'webhook_receiver'
Expand Down Expand Up @@ -195,7 +196,6 @@ prometheus:
rules:
- alert: RapidIncreaseGlucose
expr: deriv(glucose[30s]) > 10
for: 10s
labels:
severity: "MEDIUM"
type: "glucose_deriv"
Expand All @@ -209,7 +209,6 @@ prometheus:

- alert: RapidDecreaseGlucose
expr: deriv(glucose[30s]) < -10
for: 10s
labels:
severity: "MEDIUM"
type: "glucose_deriv"
Expand All @@ -225,7 +224,6 @@ prometheus:
rules:
- alert: RapidIncreaseHeartRate
expr: deriv(heartrate[30s]) > 15
for: 10s
labels:
severity: "MEDIUM"
type: "heartrate_deriv"
Expand All @@ -239,7 +237,6 @@ prometheus:

- alert: RapidDecreaseHeartRate
expr: deriv(heartrate[30s]) < -15
for: 10s
labels:
severity: "HIGH"
type: "heartrate_deriv"
Expand All @@ -255,7 +252,6 @@ prometheus:
rules:
- alert: RapidIncreaseTemperature
expr: deriv(temperature[30s]) > 0.5
for: 10s
labels:
severity: "MEDIUM"
type: "temperature_deriv"
Expand All @@ -269,7 +265,6 @@ prometheus:

- alert: RapidDecreaseTemperature
expr: deriv(temperature[30s]) < -0.5
for: 10s
labels:
severity: "MEDIUM"
type: "temperature_deriv"
Expand All @@ -284,8 +279,7 @@ prometheus:
- name: glucose-predict-alerts
rules:
- alert: PredictedHighGlucose
expr: predict_linear(glucose[30m], 30 * 60) > 180
for: 10s
expr: predict_linear(glucose[10s], 30 * 60) > 180
labels:
severity: "WARNING"
type: "glucose_predict"
Expand All @@ -298,8 +292,7 @@ prometheus:
message: "Predicted glucose value in 30 minutes: {{ $value }} mg/dL"

- alert: PredictedLowGlucose
expr: predict_linear(glucose[30m], 30 * 60) < 70
for: 1m
expr: predict_linear(glucose[10s], 30 * 60) < 70
labels:
severity: "WARNING"
type: "glucose_predict"
Expand All @@ -315,7 +308,6 @@ prometheus:
rules:
- alert: PredictedHighHeartRate
expr: predict_linear(heartrate[10s], 10 * 60) > 100
for: 10s
labels:
severity: "WARNING"
type: "heartrate_predict"
Expand All @@ -329,7 +321,6 @@ prometheus:

- alert: PredictedLowHeartRate
expr: predict_linear(heartrate[10s], 10 * 60) < 50
for: 10s
labels:
severity: "WARNING"
type: "heartrate_predict"
Expand All @@ -345,7 +336,6 @@ prometheus:
rules:
- alert: PredictedHighTemperature
expr: predict_linear(temperature[10s], 10 * 60) > 40
for: 10s
labels:
severity: "WARNING"
type: "temperature_predict"
Expand All @@ -359,7 +349,6 @@ prometheus:

- alert: PredictedLowTemperature
expr: predict_linear(temperature[10s], 10 * 60) < 35
for: 10s
labels:
severity: "WARNING"
type: "temperature_predict"
Expand All @@ -375,7 +364,6 @@ prometheus:
rules:
- alert: HighAcceleration
expr: acceleration > 1
#for: 10s
labels:
severity: "WARNING"
type: "acceleration"
Expand All @@ -390,7 +378,6 @@ prometheus:
rules:
- alert: HighGlucose
expr: glucose > 180
for: 30s
labels:
severity: "WARNING"
type: "glucose"
Expand All @@ -404,7 +391,6 @@ prometheus:

- alert: LowGlucose
expr: glucose < 70
for: 30s
labels:
severity: "WARNING"
type: "glucose"
Expand All @@ -419,7 +405,6 @@ prometheus:
rules:
- alert: HighHeartRate
expr: heartrate > 100
for: 30s
labels:
severity: "WARNING"
type: "heartrate"
Expand All @@ -433,7 +418,6 @@ prometheus:

- alert: LowHeartRate
expr: heartrate < 50
for: 30s
labels:
severity: "WARNING"
type: "heartrate"
Expand All @@ -448,7 +432,6 @@ prometheus:
rules:
- alert: HighTemperature
expr: temperature > 40
for: 30s
labels:
severity: "WARNING"
type: "temperature"
Expand All @@ -462,7 +445,6 @@ prometheus:

- alert: LowTemperature
expr: temperature < 35
for: 10s
labels:
severity: "WARNING"
type: "temperature"
Expand Down

0 comments on commit 5015101

Please sign in to comment.