Skip to content

Commit e5bfde9

Browse files
committed
fix: enable dual alert pipeline mode in prod
Made-with: Cursor
1 parent 611a582 commit e5bfde9

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

ops/mainnet/prod/core/config.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ locals {
3636
{ name = "STAGE", value = var.stage },
3737
{ name = "GRAPH_API_KEY", value = var.graph_api_key },
3838
{ name = "DD_ENV", value = "${var.environment}-${var.stage}" },
39-
{ name = "ALERT_PIPELINE_MODE", value = "legacy" },
39+
{ name = "ALERT_PIPELINE_MODE", value = "dual" },
4040
{ name = "ALERT_EVENT_WEBHOOK_URL", value = var.monitor_webhook_url },
4141
{ name = "ALERT_EVENT_WEBHOOK_SECRET", value = var.monitor_webhook_secret },
4242
{ name = "MONITOR_WEBHOOK_URL", value = var.monitor_webhook_url },
@@ -52,7 +52,7 @@ locals {
5252
DD_API_KEY = var.dd_api_key,
5353
DD_LAMBDA_HANDLER = "packages/agents/monitor/dist/lambda.handler"
5454
GRAPH_API_KEY = var.graph_api_key
55-
ALERT_PIPELINE_MODE = "legacy"
55+
ALERT_PIPELINE_MODE = "dual"
5656
ALERT_EVENT_WEBHOOK_URL = var.monitor_webhook_url
5757
ALERT_EVENT_WEBHOOK_SECRET = var.monitor_webhook_secret
5858
MONITOR_WEBHOOK_URL = var.monitor_webhook_url

packages/utils/src/helpers/events.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export type MonitorEventV1 = {
1313
version: '1.0';
1414
eventId: string;
1515
fingerprintHint?: string;
16+
status?: 'firing' | 'resolved';
1617
source: 'monorepo-monitor' | 'everclear-indexer';
1718
type: string;
1819
severity: 'info' | 'warning' | 'critical';
@@ -34,7 +35,7 @@ export type MonitorEventV1 = {
3435
export type EventEmitterConfig = {
3536
webhookUrl: string;
3637
webhookSecret: string;
37-
environment: 'dev' | 'staging' | 'prod';
38+
environment: 'dev' | 'staging' | 'prod' | 'production';
3839
network: string;
3940
retries: number;
4041
retryBaseMs: number;
@@ -135,6 +136,7 @@ function reportToEvent(
135136
return {
136137
version: '1.0',
137138
eventId: randomUUID(),
139+
status: 'firing' as const,
138140
source: 'monorepo-monitor',
139141
type: report.type,
140142
severity: severityMap[report.severity] ?? 'warning',

0 commit comments

Comments
 (0)