Skip to content

Commit 6bef272

Browse files
SungJin1212CharlieTLe
authored andcommitted
Support Start TimeStamp (ST) & Created Timestamp (CT) on PRW2 (cortexproject#7371)
* Support Start TimeStamp on PRW2 Signed-off-by: SungJin1212 <tjdwls1201@gmail.com> * Clear CT Signed-off-by: SungJin1212 <tjdwls1201@gmail.com> * Add feature flag Signed-off-by: SungJin1212 <tjdwls1201@gmail.com> * pre-allocate v2 samples/histograms Signed-off-by: SungJin1212 <tjdwls1201@gmail.com> * fix test Signed-off-by: SungJin1212 <tjdwls1201@gmail.com> * Add metric Signed-off-by: SungJin1212 <tjdwls1201@gmail.com> * move debug log to push level Signed-off-by: SungJin1212 <tjdwls1201@gmail.com> --------- Signed-off-by: SungJin1212 <tjdwls1201@gmail.com> Signed-off-by: Charlie Le <charlie_le@apple.com>
1 parent 42d3fee commit 6bef272

17 files changed

Lines changed: 988 additions & 111 deletions

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Changelog
22

33
## master / unreleased
4+
* [FEATURE] Distributor: Add experimental `-distributor.enable-start-timestamp` flag for Prometheus Remote Write 2.0. When enabled, `StartTimestamp (ST)` is ingested. #7371
45
* [ENHANCEMENT] Metrics Helper: Add native histogram support for aggregating and merging, including dual-format histogram handling that exposes both native and classic bucket formats. #7359
56
* [ENHANCEMENT] Cache: Add per-tenant TTL configuration for query results cache to control cache expiration on a per-tenant basis with separate TTLs for regular and out-of-order data. #7357
67
* [ENHANCEMENT] Tenant Federation: Add a local cache to regex resolver. #7363

docs/configuration/config-file-reference.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4111,6 +4111,12 @@ The `limits_config` configures default and per-tenant limits imposed by Cortex s
41114111
# CLI flag: -distributor.enable-type-and-unit-labels
41124112
[enable_type_and_unit_labels: <boolean> | default = false]
41134113
4114+
# EXPERIMENTAL: If true, StartTimestampMs (ST) is handled for remote write v2
4115+
# samples and histograms. CreatedTimestamp (CT) is used as a fallback when ST is
4116+
# not set.
4117+
# CLI flag: -distributor.enable-start-timestamp
4118+
[enable_start_timestamp: <boolean> | default = false]
4119+
41144120
# The maximum number of active series per user, per ingester. 0 to disable.
41154121
# CLI flag: -ingester.max-series-per-user
41164122
[max_series_per_user: <int> | default = 5000000]

docs/configuration/v1-guarantees.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ Currently experimental features are:
115115
- Distributor/Ingester: Stream push connection
116116
- Enable stream push connection between distributor and ingester by setting `-distributor.use-stream-push=true` on Distributor.
117117
- Add `__type__` and `__unit__` labels to OTLP and remote write v2 requests (`-distributor.enable-type-and-unit-labels`)
118+
- Handle StartTimestampMs (ST) for remote write v2 samples and histograms, using CreatedTimestamp (CT) as a fallback when ST is not set (`-distributor.enable-start-timestamp`)
118119
- Ingester: Series Queried Metric
119120
- Enable on Ingester via `-ingester.active-queried-series-metrics-enabled=true`
120121
- Set the time window to expose via metrics using `-ingester.active-queried-series-metrics-windows=2h`. At least 1 time window is required to expose the metric.

0 commit comments

Comments
 (0)