Skip to content

Commit

Permalink
[kube-prometheus-stack] Add scrapeClasses to prometheus resource (#4685
Browse files Browse the repository at this point in the history
…) (#4703)
  • Loading branch information
johgoe authored Jul 9, 2024
1 parent b320323 commit 5dcc890
Show file tree
Hide file tree
Showing 3 changed files with 15 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: 61.2.0
version: 61.3.0
appVersion: v0.75.0
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 @@ -112,6 +112,10 @@ spec:
- {{ tpl $enableFeatures $ }}
{{- end }}
{{- end }}
{{- with .Values.prometheus.prometheusSpec.scrapeClasses }}
scrapeClasses:
{{- tpl (toYaml . | nindent 4) $ }}
{{- end }}
{{- if .Values.prometheus.prometheusSpec.scrapeInterval }}
scrapeInterval: {{ .Values.prometheus.prometheusSpec.scrapeInterval }}
{{- end }}
Expand Down
10 changes: 10 additions & 0 deletions charts/kube-prometheus-stack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3408,6 +3408,16 @@ prometheus:
##
scrapeTimeout: ""

## List of scrape classes to expose to scraping objects such as
## PodMonitors, ServiceMonitors, Probes and ScrapeConfigs.
##
scrapeClasses: []
# - name: istio-mtls
# default: false
# tlsConfig:
# caFile: /etc/prometheus/secrets/istio.default/root-cert.pem
# certFile: /etc/prometheus/secrets/istio.default/cert-chain.pem

## Interval between consecutive evaluations.
##
evaluationInterval: ""
Expand Down

0 comments on commit 5dcc890

Please sign in to comment.