Skip to content

Commit

Permalink
update relablings for servicemonitor resource
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitriy-lukyanchikov committed May 27, 2022
1 parent 55d0047 commit 154b7f2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/jenkins/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: jenkins
home: https://jenkins.io/
version: 4.1.1
version: 4.1.2
appVersion: 2.332.3
description: Jenkins - Build great things at any scale! The leading open source automation server, Jenkins provides hundreds of plugins to support building, deploying and automating any project.
sources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ spec:
port: http
path: {{ .Values.controller.jenkinsUriPrefix }}{{ .Values.controller.prometheus.scrapeEndpoint }}
{{- if .Values.controller.prometheus.metricRelabelings }}
metricRelabelings: {{ .Values.controller.prometheus.metricRelabelings }}
metricRelabelings:
{{- toYaml .Values.controller.prometheus.metricRelabelings | trim | nindent 6 }}
{{- end }}
{{- if .Values.controller.prometheus.relabelings }}
relabelings:
{{- toYaml .Values.controller.prometheus.relabelings | trim | nindent 6 }}
{{- end }}
jobLabel: {{ template "jenkins.fullname" . }}
namespaceSelector:
Expand Down
4 changes: 4 additions & 0 deletions charts/jenkins/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,10 @@ controller:
alertingrules: []
# Set a custom namespace where to deploy PrometheusRule resource
prometheusRuleNamespace: ""
# Set relabling for metrics
metricRelabelings: []
# Set relablings
relabelings: []

# Can be used to disable rendering controller test resources when using helm template
testEnabled: true
Expand Down

0 comments on commit 154b7f2

Please sign in to comment.