Is it possible to have AnalysisRun with Datadog provider to use 2nd to last datapoint or adjust the query time range? #3658
Unanswered
andrii-korotkov-verkada
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For a datapoint at time T and rollup interval I, the datapoint's value would be an aggregation of interval [T - I/2, T + I/2], and datapoints are aligned to specific absolute points in time, not relative to now. Thus it means that T can be too close to now and thus a part of interval can be not available, likely leading to interpolation or incomplete values by Datadog.
The issue I saw is apdex metric
trace.flask.request.apdex
with avg integration andfill(last)
showing values >1 and sometimes showing lower values than it should comparing to when looking at metric in UI later. This makes some AnalysisRun to fail mistakenly.To avoid this, query time interval may need to be adjusted from
[now - interval, now]
to[now - interval - I/2, now-I/2]
or to use a 2nd to last data point if available.Is this something possible to achieve? Or should I look into disabling or changing interpolation? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions