Skip to content

Commit c8834dd

Browse files
chazappzerittiduncaanAlexandre JorisDrFaust92
authored
[kube-prometheus-stack] Added fallbackScrapeProtocol option to additionalServiceMonitors and additionalPodMonitors (#5108)
Co-authored-by: zeritti <47476160+zeritti@users.noreply.github.com> Co-authored-by: Duncan Schulze <13733349+duncaan@users.noreply.github.com> Co-authored-by: Alexandre Joris <alexandre.joris@qonto.co> Co-authored-by: Ilia Lazebnik <Ilia.lazebnik@gmail.com>
1 parent 27fb2f9 commit c8834dd

File tree

4 files changed

+17
-1
lines changed

4 files changed

+17
-1
lines changed

charts/kube-prometheus-stack/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ name: kube-prometheus-stack
2323
sources:
2424
- https://github.com/prometheus-community/helm-charts
2525
- https://github.com/prometheus-operator/kube-prometheus
26-
version: 67.6.0
26+
version: 67.7.0
2727
appVersion: v0.79.2
2828
kubeVersion: ">=1.19.0-0"
2929
home: https://github.com/prometheus-operator/kube-prometheus

charts/kube-prometheus-stack/templates/prometheus/podmonitors.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,8 @@ items:
3434
{{- if .sampleLimit }}
3535
sampleLimit: {{ .sampleLimit }}
3636
{{- end }}
37+
{{- if .fallbackScrapeProtocol }}
38+
fallbackScrapeProtocol: {{ .fallbackScrapeProtocol }}
39+
{{- end }}
3740
{{- end }}
3841
{{- end }}

charts/kube-prometheus-stack/templates/prometheus/servicemonitors.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,8 @@ items:
4343
relabelings:
4444
{{ toYaml .relabelings | indent 8 }}
4545
{{- end }}
46+
{{- if .fallbackScrapeProtocol }}
47+
fallbackScrapeProtocol: {{ .fallbackScrapeProtocol }}
48+
{{- end }}
4649
{{- end }}
4750
{{- end }}

charts/kube-prometheus-stack/values.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4424,6 +4424,11 @@ prometheus:
44244424
# replacement: $1
44254425
# action: replace
44264426

4427+
## Fallback scrape protocol used by Prometheus for scraping metrics
4428+
## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#monitoring.coreos.com/v1.ScrapeProtocol
4429+
##
4430+
# fallbackScrapeProtocol: ""
4431+
44274432
additionalPodMonitors: []
44284433
## Name of the PodMonitor to create
44294434
##
@@ -4479,6 +4484,11 @@ prometheus:
44794484
##
44804485
# podMetricsEndpoints: []
44814486

4487+
## Fallback scrape protocol used by Prometheus for scraping metrics
4488+
## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#monitoring.coreos.com/v1.ScrapeProtocol
4489+
##
4490+
# fallbackScrapeProtocol: ""
4491+
44824492
## Configuration for thanosRuler
44834493
## ref: https://thanos.io/tip/components/rule.md/
44844494
##

0 commit comments

Comments
 (0)