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: add v4 to default alert objects to fix the issue of incorrect query response due to v3 endpoint

ahmadshaheer975f141604c7
diff --git a/frontend/src/container/CreateAlertRule/defaults.ts b/frontend/src/container/CreateAlertRule/defaults.ts
index 23e6b3f77d..44dee01d31 100644
--- a/frontend/src/container/CreateAlertRule/defaults.ts
+++ b/frontend/src/container/CreateAlertRule/defaults.ts
@@ -104,6 +104,7 @@ export const anamolyAlertDefaults: AlertDef = {
export const logAlertDefaults: AlertDef = {
alertType: AlertTypes.LOGS_BASED_ALERT,
+ version: ENTITY_VERSION_V4,
condition: {
compositeQuery: {
builderQueries: {
@@ -134,6 +135,7 @@ export const logAlertDefaults: AlertDef = {
export const traceAlertDefaults: AlertDef = {
alertType: AlertTypes.TRACES_BASED_ALERT,
+ version: ENTITY_VERSION_V4,
condition: {
compositeQuery: {
builderQueries: {
@@ -164,6 +166,7 @@ export const traceAlertDefaults: AlertDef = {
export const exceptionAlertDefaults: AlertDef = {
alertType: AlertTypes.EXCEPTIONS_BASED_ALERT,
+ version: ENTITY_VERSION_V4,
condition: {
compositeQuery: {
builderQueries: {