You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,7 @@
15
15
*[FEATURE] Ruler: Minimize chances of missed rule group evaluations that can occur due to OOM kills, bad underlying nodes, or due to an unhealthy ruler that appears in the ring as healthy. This feature is enabled via `-ruler.enable-ha-evaluation` flag. #6129
16
16
*[FEATURE] Store Gateway: Add an in-memory chunk cache. #6245
17
17
*[FEATURE] Chunk Cache: Support multi level cache and add metrics. #6249
18
+
*[ENHANCEMENT] OTLP: Add `-distributor.otlp-max-recv-msg-size` flag to limit OTLP request size in bytes. #6333
18
19
*[ENHANCEMENT] S3 Bucket Client: Add a list objects version configs to configure list api object version. #6280
19
20
*[ENHANCEMENT] OpenStack Swift: Add application credential configs for Openstack swift object storage backend. #6255
20
21
*[ENHANCEMENT] Query Frontend: Add new query stats metrics `cortex_query_samples_scanned_total` and `cortex_query_peak_samples` to track scannedSamples and peakSample per user. #6228
f.IntVar(&cfg.MaxRecvMsgSize, "distributor.max-recv-msg-size", 100<<20, "remote_write API max receive message size (bytes).")
190
+
f.IntVar(&cfg.OTLPMaxRecvMsgSize, "distributor.otlp-max-recv-msg-size", 100<<20, "Maximum OTLP request size in bytes that the Distributor can accept.")
189
191
f.DurationVar(&cfg.RemoteTimeout, "distributor.remote-timeout", 2*time.Second, "Timeout for downstream ingesters.")
190
192
f.DurationVar(&cfg.ExtraQueryDelay, "distributor.extra-query-delay", 0, "Time to wait before sending more than the minimum successful query requests.")
191
193
f.BoolVar(&cfg.ShardByAllLabels, "distributor.shard-by-all-labels", false, "Distribute samples based on all labels, as opposed to solely by user and metric name.")
returnpmetricotlp.NewExportRequest(), fmt.Errorf("received message larger than max (%d vs %d)", expectedSize, maxSize)
106
+
}
107
+
108
+
contentType:=r.Header.Get("Content-Type")
109
+
contentEncoding:=r.Header.Get("Content-Encoding")
110
+
111
+
varcompressionType util.CompressionType
112
+
switchcontentEncoding {
113
+
case"gzip":
114
+
compressionType=util.Gzip
115
+
case"":
116
+
compressionType=util.NoCompression
117
+
default:
118
+
returnpmetricotlp.NewExportRequest(), fmt.Errorf("unsupported compression: %s, Supported compression types are \"gzip\" or '' (no compression)", contentEncoding)
0 commit comments