Skip to content

Commit

Permalink
chore: sync vm parameters from gemini
Browse files Browse the repository at this point in the history
  • Loading branch information
sophon-zt committed Sep 6, 2024
1 parent 9b3699b commit d20101c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions addons-cluster/victoria-metrics/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ spec:
replicas: {{ .Values.replicas }}
{{- include "kblib.componentResources" . | indent 6 }}
{{- include "kblib.componentStorages" . | indent 6 }}
env:
- name: RETENTION_PERIOD
value: "{{ .Values.retentionPeriod }}"
- name: vmselect
{{- include "kblib.componentMonitor" . | indent 6 }}
replicas: {{ .Values.vmselect.replicas }}
Expand Down
2 changes: 2 additions & 0 deletions addons-cluster/victoria-metrics/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ requests:
##
storage: 20

retentionPeriod: 30d

## @param vminsert configs
##
vminsert:
Expand Down
2 changes: 1 addition & 1 deletion addons/victoria-metrics/templates/cmpd-vmstorage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ spec:
imagePullPolicy: {{ .Values.images.vminsert.pullPolicy }}
securityContext: {}
args:
- --retentionPeriod=1
- --storageDataPath=/storage
- --retentionPeriod=$(RETENTION_PERIOD)
{{- range $key, $value := .Values.vmstorage.extraArgs }}
- --{{ $key }}={{ $value }}
{{- end }}
Expand Down
4 changes: 4 additions & 0 deletions addons/victoria-metrics/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ vminsert:
envflag.enable: "true"
envflag.prefix: VM_
loggerFormat: json
maxLabelsPerTimeseries: 60
maxLabelValueLen: 16384
disableReroutingOnUnavailable: false
disableRerouting: true

vmstorage:
# -- Service port
Expand Down

0 comments on commit d20101c

Please sign in to comment.