Skip to content

Commit

Permalink
feat(k8s-values): enable Prometheus metrics
Browse files Browse the repository at this point in the history
fix indent in template
  • Loading branch information
Gilad Weinbach committed Aug 4, 2020
1 parent 36d1a42 commit 5a0e2cc
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
30 changes: 15 additions & 15 deletions helm/spark-yotpo/templates/sparkapplication.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,18 +138,18 @@ spec:
{{ toYaml .Values.tolerations | indent 6 }}
{{- end }}
{{- if .Values.jmxExporterJar }}
monitoring:
exposeDriverMetrics: true
exposeExecutorMetrics: true
prometheus:
port: {{ .Values.jmxPort | default 8090 }}
jmxExporterJar: {{ .Values.jmxExporterJar }}
{{- end }}
{{- if .Values.volumes }}
volumes:
{{ toYaml .Values.volumes | indent 3 }}
{{- end }}
{{- if .Values.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 4 }}
{{- end }}
monitoring:
exposeDriverMetrics: true
exposeExecutorMetrics: true
prometheus:
port: {{ .Values.jmxPort | default 8090 }}
jmxExporterJar: {{ .Values.jmxExporterJar }}
{{- end }}
{{- if .Values.volumes }}
volumes:
{{ toYaml .Values.volumes | indent 3 }}
{{- end }}
{{- if .Values.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 4 }}
{{- end }}
1 change: 1 addition & 0 deletions helm/spark-yotpo/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ executor:
coreLimit: 1
instances: 1
memory: "512m"
jmxExporterJar: "/prometheus/jmx_prometheus_javaagent-0.11.0.jar"
sparkConf:
spark.executor.logs.rolling.maxRetainedFiles: 0
spark.executor.logs.rolling.maxSize: 104857600
Expand Down

0 comments on commit 5a0e2cc

Please sign in to comment.