SigNoz / signoz

SigNoz is an open-source observability platform native to OpenTelemetry with logs, traces and metrics in a single application. An open-source alternative to DataDog, NewRelic, etc. 🔥 🖥. 👉 Open source Application Performance Monitoring (APM) & Observability tool
https://signoz.io
Other
19.43k stars 1.31k forks source link

chore: add experimental rate/increase calc #6432

Closed srikanthccv closed 1 week ago

srikanthccv commented 1 week ago

Summary

Experimenting with expressions used to calculate rate/increase for cumulative counters. This is better than what is already there for cases where the aggregation is performed for the whole window, but I want to see how it works in all scenarios.


[!IMPORTANT] Adds experimental rate/increase calculations in timeseries.go, conditionally used based on environment variables.

  • Behavior:
    • Adds experimentalRateWithoutNegative and experimentalIncreaseWithoutNegative expressions in timeseries.go for rate and increase calculations.
    • Uses experimental expressions if EXPERIMENTAL_RATE_WITHOUT_NEGATIVE or EXPERIMENTAL_INCREASE_WITHOUT_NEGATIVE environment variables are set.
  • Functions:
    • Modifies prepareTimeAggregationSubQuery to conditionally use experimental expressions based on environment variables.

This description was created by Ellipsis for 14dbe5d96afa5a07ff24077d5f74cdb34c724a94. It will automatically update as commits are pushed.

github-actions[bot] commented 1 week ago

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #

github-actions[bot] commented 1 week ago

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #