Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
fix(monitoring): point dss-errors-prod at current log service (#7922)
teo3f1c229b4d2a
diff --git a/infra/stacks/monitoring/monitors/logs.ts b/infra/stacks/monitoring/monitors/logs.tsindex dac8a31710..3527d51354 100644--- a/infra/stacks/monitoring/monitors/logs.ts+++ b/infra/stacks/monitoring/monitors/logs.ts@@ -4,6 +4,14 @@// monitor here and in the UI at the same time — this file wins on deploy.import { adopted } from '../adopted';+// DSS logs every expired-JWT rejection at ERROR. These are routine client token+// refreshes and make up about 60% of its prod error lines, so the DSS error+// monitors drop them. Log search wildcards are case-sensitive, so each spelling+// (`JwtExpired`, `jwt is expired`, `jwt expired`) is listed; `?` stands in for+// the space.+const DSS_EXPIRED_JWT_EXCLUSION =+ '-@error:(*JwtExpired* OR *jwt?is?expired* OR *jwt?expired*)';+// https://us5.datadoghq.com/monitors/440085adopted('macroai-error-logs', {name: '[MACROAI] Increase in Error logs',@@ -48,8 +56,7 @@ adopted('macroapi-error-logs', {adopted('dss-errors-dev', {name: '[DEV] Increased number of errors for DSS',type: 'log alert',- query:- 'logs("service:cloud-storage-service-dev ERROR*").index("*").rollup("count").last("5m") > 200',+ query: `logs("service:cloud-storage-service env:dev status:error ${DSS_EXPIRED_JWT_EXCLUSION}").index("*").rollup("count").last("5m") > 200`,message: '@slack-monitoring',monitorThresholds: {critical: '200',@@ -64,15 +71,15 @@ adopted('dss-errors-dev', {});// https://us5.datadoghq.com/monitors/1062128+// No warning threshold: prod error lines exceed 50 per 5 minutes in roughly+// one window in eight, so a warning would notify Slack all day.adopted('dss-errors-prod', {name: '[PROD] Increased number of errors for DSS',type: 'log alert',- query:- 'logs("service:cloud-storage-service-prod ERROR*").index("*").rollup("count").last("5m") > 150',+ query: `logs("service:cloud-storage-service env:prod status:error ${DSS_EXPIRED_JWT_EXCLUSION}").index("*").rollup("count").last("5m") > 150`,message: '@slack-monitoring',monitorThresholds: {critical: '150',- warning: '50',},onMissingData: 'default',notifyAudit: true,