Skip to content

Commit 2e1e823

Browse files
author
Rishabh Singh
authored
fix: Fix env var name for alerting service (#274)
Update the env var for notification-channels path to NOTIFICATION_CHANNELS_PATH
1 parent 45eec6a commit 2e1e823

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

docker/configs/alert-rules.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[
22
{
33
"id": "notification_rule_1",
4-
"ruleName": "high_avg_latency",
4+
"ruleName": "high_num_calls",
55
"description": "Alert for high avg latency of payment service",
6-
"eventConditionId": "event_condition_1",
6+
"eventConditionId": "Customer app, high num calls",
77
"eventConditionType": "MetricAnomalyEventCondition",
88
"channelId": "channel-id-1",
99
"eventCondition" : {
@@ -32,7 +32,7 @@
3232
"violationCondition": [{
3333
"staticThresholdCondition": {
3434
"operator": "STATIC_THRESHOLD_OPERATOR_GT",
35-
"value": 0.0,
35+
"value": 3.0,
3636
"minimumViolationDuration": "PT5M",
3737
"severity": "SEVERITY_CRITICAL"
3838
}

docker/configs/notification-rules.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
}
1111
]
1212
}
13-
]
13+
]

docker/docker-compose.alerting.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ services:
77
container_name: hypertrace-alert-engine
88
environment:
99
- ALERT_RULES_PATH=/app/resources/alert-rules.json
10-
- NOTIFICATION_RULES_PATH=/app/resources/notification-rules.json
10+
- NOTIFICATION_CHANNELS_PATH=/app/resources/notification-rules.json
1111
- QUERY_SERVICE_HOST_CONFIG=hypertrace
1212
- QUERY_SERVICE_PORT_CONFIG=9001
1313
- ATTRIBUTE_SERVICE_HOST_CONFIG=hypertrace

0 commit comments

Comments
 (0)