Skip to content

Commit

Permalink
[kube-prometheus-stack] Add scrapeClasses to prometheus resource (pro…
Browse files Browse the repository at this point in the history
…metheus-community#4685)

Signed-off-by: johgoe <johannes.goehr@gmx.net>
  • Loading branch information
johgoe committed Jul 8, 2024
1 parent b320323 commit c4f8042
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ spec:
- {{ tpl $enableFeatures $ }}
{{- end }}
{{- end }}
{{- if .Values.prometheus.prometheusSpec.scrapeClasses }}
scrapeClasses:
{{ tpl (toYaml .Values.prometheus.prometheusSpec.scrapeClasses | indent 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 c4f8042

Please sign in to comment.