Skip to content
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 receiver: Convert start timestamps to Prometheus zero samples #684

Merged
merged 3 commits into from
Aug 30, 2024

Conversation

aknuds1
Copy link
Contributor

@aknuds1 aknuds1 commented Aug 29, 2024

Modify the OTLP receiver to, if the --created-timestamp-zero-ingestion feature flag is true, convert data point start timestamps to Prometheus zero samples 1 millisecond before the sample itself, iff the following is true: The OTel start timestamp is greater than zero and equal to the data point timestamp.

Depends on #685.

@aknuds1 aknuds1 requested a review from bboreham August 29, 2024 14:23
@aknuds1 aknuds1 added the enhancement New feature or request label Aug 29, 2024
@aknuds1 aknuds1 force-pushed the arve/otlp-starttime branch 2 times, most recently from 6473206 to b4b3894 Compare August 29, 2024 15:36
Comment on lines 7 to +9
* [BUGFIX] tsdb/wlog.Watcher.readSegmentForGC: Only count unknown record types against record_decode_failures_total metric. #14042
* [ENHANCEMENT] OTLP: During translation, check for context cancellation/timeout. #654
* [ENHANCEMENT] OTLP receiver: If the feature flag `--created-timestamp-zero-ingestion` is true, convert OTel start timestamps to Prometheus zero samples. #14759
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Enhancements should all group together, but we can fix that in post.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in #687

@jesusvazquez jesusvazquez merged commit 6b342fa into main Aug 30, 2024
9 checks passed
@jesusvazquez jesusvazquez deleted the arve/otlp-starttime branch August 30, 2024 15:03
@krajorama krajorama mentioned this pull request Sep 2, 2024
julienduchesne added a commit that referenced this pull request Jan 8, 2025
…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`)
julienduchesne added a commit that referenced this pull request Jan 8, 2025
…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`)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants