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.

feat: add time support in formula (#2961)

Srikanth Chekurib7c50cc76d68
diff --git a/pkg/query-service/app/queryBuilder/query_builder.go b/pkg/query-service/app/queryBuilder/query_builder.go
index 038b06f312..92325acd45 100644
--- a/pkg/query-service/app/queryBuilder/query_builder.go
+++ b/pkg/query-service/app/queryBuilder/query_builder.go
@@ -32,6 +32,8 @@ var SupportedFunctions = []string{
"atan",
"degrees",
"radians",
+ "now",
+ "toUnixTimestamp",
}
var EvalFuncs = map[string]govaluate.ExpressionFunction{}