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
thanos/receive: add feature flag to put ext labels into TSDB
Enable streaming by putting external labels into the TSDB. If the
external labels ever change then the head is pruned during startup.
Signed-off-by: Giedrius Statkevičius <[email protected]>
cmd.Flag("receive.otlp-enable-target-info", "Enables target information in OTLP metrics ingested by Receive. If enabled, it converts the resource to the target info metric").Default("true").BoolVar(&rc.otlpEnableTargetInfo)
1101
1107
cmd.Flag("receive.otlp-promote-resource-attributes", "(Repeatable) Resource attributes to include in OTLP metrics ingested by Receive.").Default("").StringsVar(&rc.otlpResourceAttributes)
1102
1108
1103
-
rc.featureList=cmd.Flag("enable-feature", "Comma separated experimental feature names to enable. The current list of features is "+metricNamesFilter+".").Default("").Strings()
1109
+
rc.featureList=cmd.Flag("enable-feature", "Comma separated experimental feature names to enable. The current list of features is "+metricNamesFilter+","+extLabelsInTSDB+".").Default("").Strings()
1104
1110
1105
1111
cmd.Flag("receive.lazy-retrieval-max-buffered-responses", "The lazy retrieval strategy can buffer up to this number of responses. This is to limit the memory usage. This flag takes effect only when the lazy retrieval strategy is enabled.").
Copy file name to clipboardExpand all lines: docs/components/receive.md
+13-1Lines changed: 13 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -388,6 +388,18 @@ func (h *Handler) writeQuorum() int {
388
388
389
389
So, if the replication factor is 2 then at least one write must succeed. With RF=3, two writes must succeed, and so on.
390
390
391
+
## Feature Flags
392
+
393
+
### metric-names-filter
394
+
395
+
If enabled then every 15 seconds Receiver will query all available metric names in each tenant and build a bloom filter from them.
396
+
397
+
This allows filtering out certain tenants from queriers and thus it will not require spawning a Go routine for them.
398
+
399
+
### ext-labels-in-tsdb
400
+
401
+
If enabled then it will put the current external labels as "normal" labels inside of the TSDB. This also adds a special marker to the meta files in blocks so that it would be known whether external labels are part of the series inside of the TSDB.
0 commit comments