Skip to content

Commit

Permalink
[charts/spark-operator] add metrics collection only when metrics are …
Browse files Browse the repository at this point in the history
…enabled
  • Loading branch information
Z4ck404 committed Apr 11, 2024
1 parent 7d19f86 commit d1ef66e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ data:
Regex $kubernetes['labels']['bigdata.spot.io/component'] {{ index .Values.podLabels "bigdata.spot.io/component" | quote }}
metrics-collection.conf: |
## Configuration for collecting metrics from the spark operator
{{- if .Values.metrics.enable }}
[INPUT]
name prometheus_scrape
host 0.0.0.0
Expand All @@ -30,4 +32,5 @@ data:
tls off
tls.verify off
Workers 1
{{- end }}
{{- end }}

0 comments on commit d1ef66e

Please sign in to comment.