-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OTLP: Increase valid created timestamp threshold to 5 minutes #706
Conversation
Increasing valid threshold for inserting zero's at StartTimeUnixNano on OTLP Write requests. The reason why we want to do this is that Grafana's $__rate_interval is typically 4 times the scrape interval so assuming an average DPM of 1 we could have the zero sample 4 minutes before the first sample. This is a small change that might help with usecases where samples are slightly delayed. Also we've made this threshold configurable now. It defaults to 5 minutes but it can be overiden for special cases. Signed-off-by: Jesus Vazquez <[email protected]>
8a97e0b
to
ce7e117
Compare
Signed-off-by: Jesus Vazquez <[email protected]>
storage/remote/otlptranslator/prometheusremotewrite/metrics_to_prw.go
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Jesus Vazquez <[email protected]>
web/web.go
Outdated
EnableCreatedTimestampZeroIngestion bool | ||
ValidIntervalCreatedTimestampZeroIngestion time.Duration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: these two cause conflicts when updating from upstream due to the indenting. Would be nice to eventually clean these up by adding our additions at the end after empty line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean something like:
RemoteReadBytesInFrame int
EnableRemoteWriteReceiver bool
EnableOTLPWriteReceiver bool
// Our additions
EnableCreatedTimestampZeroIngestion bool
ValidIntervalCreatedTimestampZeroIngestion time.Duration
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks
…chesne/upstream-pt2 Conflicts: - api/v1/errors_test.go: #706 with prometheus/prometheus@3b97a63 - web/api/v1/api.go: #684 with prometheus/prometheus@3b97a63. Picked the upstream naming for the parameter (`enableCTZeroIngestion` vs `ctZeroIngestionEnabled`)
…chesne/upstream-pt2 Conflicts: - api/v1/errors_test.go: #706 with prometheus/prometheus@3b97a63 - web/api/v1/api.go: #684 with prometheus/prometheus@3b97a63. Picked the upstream naming for the parameter (`enableCTZeroIngestion` vs `ctZeroIngestionEnabled`)
Increasing valid threshold for inserting zero's at StartTimeUnixNano on OTLP Write requests.
The reason why we want to do this is that Grafana's $__rate_interval is typically 4 times the scrape interval so assuming an average DPM of 1 we could have the zero sample 4 minutes before the first sample.
This is a small change that might help with usecases where samples are slightly delayed.
Also we've made this threshold configurable now. It defaults to 5 minutes but it can be overiden for special cases.