Skip to content

Commit b4b3b2c

Browse files
committed
fix: spar alert
1 parent d091c35 commit b4b3b2c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

workflow-cli/configuration-opensearch/alerting/spar-onprem-devops.monitor.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@
6666
},
6767
"actions": [
6868
{
69-
"$$OMIT": "<%= !serverTag('production') ? 'true' : 'false' %>",
69+
"$$OMIT": "<%= environment !== 'production' ? 'true' : 'false' %>",
7070
"id": "<%= idgen('action-prod-spar-sns') %>",
7171
"name": "notify",
72-
"destination_id": "wf-prod-msteams",
72+
"destination_id": "epsilon-normal-sns",
7373
"message_template": {
74-
"source": "{\"text\": \"High http.response.status_code count between {{ctx.periodStart}} and {{ctx.periodEnd}}\"}",
74+
"source": "High http.response.status_code count between {{ctx.periodStart}} and {{ctx.periodEnd}}",
7575
"lang": "mustache"
7676
},
7777
"throttle_enabled": true,

workflow-cli/src/services/opensearch-monitor.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const ALERT_CONFIG_DIR = path.resolve(
4343
__dirname,
4444
'../../configuration-opensearch/alerting',
4545
);
46-
const MONITORS_PREFIX = 'nrids_agent_';
46+
const MONITORS_PREFIX = 'nrids_';
4747

4848
@injectable()
4949
export default class OpenSearchMonitorService extends AwsService {
@@ -110,7 +110,7 @@ export default class OpenSearchMonitorService extends AwsService {
110110
monitors.push(
111111
JSON.parse(
112112
ejs.render(alertMonitorStr, {
113-
service: serviceData,
113+
service: serviceData.data,
114114
environment,
115115
idgen,
116116
}),

0 commit comments

Comments
 (0)