Skip to content

Commit

Permalink
cluster bugfix and drop empty endpoints from scrape (#1431)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewChubatiuk authored Sep 4, 2024
1 parent bb05256 commit 19ff12a
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/victoria-metrics-cluster/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Next release

- TODO
- fixed vmstorage resources templating

## 0.13.2

Expand Down
2 changes: 1 addition & 1 deletion charts/victoria-metrics-cluster/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ type: application
appVersion: v1.103.0
description: Victoria Metrics Cluster version - high-performance, cost-effective and scalable TSDB, long-term remote storage for Prometheus
name: victoria-metrics-cluster
version: 0.13.2
version: 0.13.3
sources:
- https://github.com/VictoriaMetrics/helm-charts
icon: https://avatars.githubusercontent.com/u/43720803?s=200&v=4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ spec:
{{- with (fromYaml (include "vm.probe" (dict "app" $app "type" "startup"))) }}
startupProbe: {{ toYaml . | nindent 12 }}
{{- end }}
{{- with $app.resource }}
{{- with $app.resources }}
resources: {{ toYaml . | nindent 12 }}
{{- end }}
volumeMounts:
Expand Down
2 changes: 1 addition & 1 deletion charts/victoria-metrics-k8s-stack/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Next release

- TODO
- Drop empty endpoints param from scrape configuration

## 0.25.14

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,14 @@ metadata:
name: {{ $fullname }}
namespace: {{ $namespace }}
labels: {{ $scrapeLabels | nindent 4 }}
spec: {{ (tpl (toYaml (mergeOverwrite (deepCopy $spec) (deepCopy $sc.spec))) $) | nindent 2 }}
{{- $emptyParamsToDrop := list "endpoints" }}
{{- $scrapeSpec := mergeOverwrite (deepCopy $spec) (deepCopy $sc.spec) }}
{{- range $paramToDrop := $emptyParamsToDrop }}
{{- if and (hasKey $scrapeSpec $paramToDrop) (empty (index $scrapeSpec $paramToDrop)) }}
{{- $_ := unset $scrapeSpec $paramToDrop }}
{{- end }}
{{- end }}
spec: {{ (tpl (toYaml $scrapeSpec) $) | nindent 2 }}


{{- end }}
Expand Down

0 comments on commit 19ff12a

Please sign in to comment.