Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

fix: [alerts] fixed selected interval for chart preview in ch use case (#1761)

Amol Umbark0cbba071ea19
diff --git a/frontend/src/container/FormAlertRules/index.tsx b/frontend/src/container/FormAlertRules/index.tsx
index a0791a4aa1..9f91aed088 100644
--- a/frontend/src/container/FormAlertRules/index.tsx
+++ b/frontend/src/container/FormAlertRules/index.tsx
@@ -468,6 +468,7 @@ function FormAlertRules({
threshold={alertDef.condition?.target}
query={manualStagedQuery}
userQueryKey={runQueryId}
+ selectedInterval={toChartInterval(alertDef.evalWindow)}
/>
);
};
diff --git a/frontend/src/container/FormAlertRules/utils.ts b/frontend/src/container/FormAlertRules/utils.ts
index 9e6ec66d07..f759d0e37e 100644
--- a/frontend/src/container/FormAlertRules/utils.ts
+++ b/frontend/src/container/FormAlertRules/utils.ts
@@ -135,7 +135,7 @@ export const toChartInterval = (evalWindow: string | undefined): Time => {
case '30m0s':
return '30min';
case '60m0s':
- return '30min';
+ return '1hr';
case '4h0m0s':
return '4hr';
case '24h0m0s':