Skip to content

Commit 28dd1e6

Browse files
vmsingle and vmagent: keep_input for streaming aggregation
1 parent 61ef5f7 commit 28dd1e6

File tree

5 files changed

+22
-1
lines changed

5 files changed

+22
-1
lines changed

api/operator/v1beta1/vmextra_types.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,9 @@ type StreamAggrRule struct {
593593
// +optional
594594
IgnoreOldSamples *bool `json:"ignore_old_samples,omitempty" yaml:"ignore_old_samples,omitempty"`
595595

596+
// KeepInput instructs whether to keep all the matched input samples after the aggregation
597+
KeepInput *bool `json:"keep_input,omitempty" yaml:"keep_input,omitempty"`
598+
596599
// By is an optional list of labels for grouping input series.
597600
//
598601
// See also Without.

api/operator/v1beta1/zz_generated.deepcopy.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/overlay/crd.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6932,6 +6932,10 @@ spec:
69326932
interval:
69336933
description: Interval is the interval between aggregations.
69346934
type: string
6935+
keep_input:
6936+
description: KeepInput instructs whether to keep all
6937+
the matched input samples after the aggregation
6938+
type: boolean
69356939
keep_metric_names:
69366940
description: KeepMetricNames instructs to leave metric
69376941
names as is for the output time series without adding
@@ -8720,6 +8724,10 @@ spec:
87208724
interval:
87218725
description: Interval is the interval between aggregations.
87228726
type: string
8727+
keep_input:
8728+
description: KeepInput instructs whether to keep all the
8729+
matched input samples after the aggregation
8730+
type: boolean
87238731
keep_metric_names:
87248732
description: KeepMetricNames instructs to leave metric names
87258733
as is for the output time series without adding any suffix.
@@ -34826,6 +34834,10 @@ spec:
3482634834
interval:
3482734835
description: Interval is the interval between aggregations.
3482834836
type: string
34837+
keep_input:
34838+
description: KeepInput instructs whether to keep all the
34839+
matched input samples after the aggregation
34840+
type: boolean
3482934841
keep_metric_names:
3483034842
description: KeepMetricNames instructs to leave metric names
3483134843
as is for the output time series without adding any suffix.

docs/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ To perform migration to the `VLSingle` please follow [this docs](https://docs.vi
3535
* FEATURE: [vmagent](https://docs.victoriametrics.com/operator/resources/vmagent/): added AWS section to VMAgent remoteWrite spec. See [#928](https://github.com/VictoriaMetrics/operator/issues/928).
3636
* FEATURE: [vmagent](https://docs.victoriametrics.com/operator/resources/vmagent/): introduce global scrape config for VMAgent. See [#1179](https://github.com/VictoriaMetrics/operator/issues/1179).
3737
* FEATURE: [vmcluster](https://docs.victoriametrics.com/operator/resources/vmcluster/): added the `maxUnavailable` field to VMStorage and VMSelect specs to allow customization of rolling update behavior. See [#1457](https://github.com/VictoriaMetrics/operator/issues/1457) and minimum downtime update strategy [doc](https://docs.victoriametrics.com/victoriametrics/cluster-victoriametrics/#minimum-downtime-strategy). Thanks to the @vpedosyuk for the [1458](https://github.com/VictoriaMetrics/operator/pull/1458) Pull Request
38-
38+
* FEATURE: [vmagent](https://docs.victoriametrics.com/operator/resources/vmagent/) and [vmsingle](https://docs.victoriametrics.com/operator/resources/vmsingle/): adds `keep_input` into `streamAggrConfig`.
3939
* FEATURE: [vmagent](https://docs.victoriametrics.com/operator/resources/vmagent/): Modify default `remoteWrite.maxDiskUsagePerURL` when statefulStorage.volumeClaimTemplate is set. See [#1209](https://github.com/VictoriaMetrics/operator/issues/1209)
4040

4141
## [v0.60.2](https://github.com/VictoriaMetrics/operator/releases/tag/v0.60.2)

docs/api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2436,6 +2436,7 @@ Appears in: [StreamAggrConfig](#streamaggrconfig)
24362436
| ignore_old_samples<a href="#streamaggrrule-ignore_old_samples" id="streamaggrrule-ignore_old_samples">#</a><br/>_boolean_ | _(Optional)_<br/>IgnoreOldSamples instructs to ignore samples with old timestamps outside the current aggregation interval. |
24372437
| input_relabel_configs<a href="#streamaggrrule-input_relabel_configs" id="streamaggrrule-input_relabel_configs">#</a><br/>_[RelabelConfig](#relabelconfig) array_ | _(Optional)_<br/>InputRelabelConfigs is an optional relabeling rules, which are applied on the input<br />before aggregation. |
24382438
| interval<a href="#streamaggrrule-interval" id="streamaggrrule-interval">#</a><br/>_string_ | _(Required)_<br/>Interval is the interval between aggregations. |
2439+
| keep_input<a href="#streamaggrrule-keep_input" id="streamaggrrule-keep_input">#</a><br/>_boolean_ | _(Required)_<br/>KeepInput instructs whether to keep all the matched input samples after the aggregation |
24392440
| keep_metric_names<a href="#streamaggrrule-keep_metric_names" id="streamaggrrule-keep_metric_names">#</a><br/>_boolean_ | _(Optional)_<br/>KeepMetricNames instructs to leave metric names as is for the output time series without adding any suffix. |
24402441
| match<a href="#streamaggrrule-match" id="streamaggrrule-match">#</a><br/>_[StringOrArray](#stringorarray)_ | _(Optional)_<br/>Match is a label selector (or list of label selectors) for filtering time series for the given selector.<br /><br />If the match isn't set, then all the input time series are processed. |
24412442
| no_align_flush_to_interval<a href="#streamaggrrule-no_align_flush_to_interval" id="streamaggrrule-no_align_flush_to_interval">#</a><br/>_boolean_ | _(Optional)_<br/>NoAlignFlushToInterval disables aligning of flushes to multiples of Interval.<br />By default flushes are aligned to Interval. |

0 commit comments

Comments
 (0)