Skip to content

Commit

Permalink
kube-prometheus-stack(prometheus-community#5104): Added fallbackScrap…
Browse files Browse the repository at this point in the history
…eProtocol option to additionalServiceMonitors and additionalPodMonitors

Signed-off-by: Alexandre Joris <[email protected]>
  • Loading branch information
Alexandre Joris committed Jan 2, 2025
1 parent da39668 commit 160032a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/kube-prometheus-stack/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ name: kube-prometheus-stack
sources:
- https://github.com/prometheus-community/helm-charts
- https://github.com/prometheus-operator/kube-prometheus
version: 67.5.0
version: 67.6.0
appVersion: v0.79.2
kubeVersion: ">=1.19.0-0"
home: https://github.com/prometheus-operator/kube-prometheus
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,8 @@ items:
{{- if .sampleLimit }}
sampleLimit: {{ .sampleLimit }}
{{- end }}
{{- if .fallbackScrapeProtocol }}
fallbackScrapeProtocol: {{ .fallbackScrapeProtocol }}
{{- end }}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,8 @@ items:
relabelings:
{{ toYaml .relabelings | indent 8 }}
{{- end }}
{{- if .fallbackScrapeProtocol -}}
fallbackScrapeProtocol: {{ .fallbackScrapeProtocol }}
{{- end }}
{{- end }}
{{- end }}
10 changes: 10 additions & 0 deletions charts/kube-prometheus-stack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4424,6 +4424,11 @@ prometheus:
# replacement: $1
# action: replace

## Fallback scrape protocol used by Prometheus for scraping metrics
## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#monitoring.coreos.com/v1.ScrapeProtocol
##
# fallbackScrapeProtocol: ""

additionalPodMonitors: []
## Name of the PodMonitor to create
##
Expand Down Expand Up @@ -4479,6 +4484,11 @@ prometheus:
##
# podMetricsEndpoints: []

## Fallback scrape protocol used by Prometheus for scraping metrics
## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#monitoring.coreos.com/v1.ScrapeProtocol
##
# fallbackScrapeProtocol: ""

## Configuration for thanosRuler
## ref: https://thanos.io/tip/components/rule.md/
##
Expand Down

0 comments on commit 160032a

Please sign in to comment.