Skip to content

Commit

Permalink
fix Helm config for operatorMetrics not having defined a "scrapeInter…
Browse files Browse the repository at this point in the history
…val"
  • Loading branch information
thjaeckle committed Jan 29, 2024
1 parent bd0f613 commit df4e532
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deployment/helm/ditto/Chart.yaml
Expand Up @@ -16,7 +16,7 @@ description: |
A digital twin is a virtual, cloud based, representation of his real world counterpart
(real world “Things”, e.g. devices like sensors, smart heating, connected cars, smart grids, EV charging stations etc).
type: application
version: 3.5.1 # chart version is effectively set by release-job
version: 3.5.2 # chart version is effectively set by release-job
appVersion: 3.5.0
keywords:
- iot-chart
Expand Down
2 changes: 2 additions & 0 deletions deployment/helm/ditto/templates/thingssearch-deployment.yaml
Expand Up @@ -147,7 +147,9 @@ spec:
{{- end }}
{{- range $key, $value := .Values.thingsSearch.config.operatorMetrics.customMetrics }}
"{{ printf "%s%s%s=%t" "-Dditto.search.operator-metrics.custom-metrics." $key ".enabled" $value.enabled }}"
{{- if $value.scrapeInterval }}
"{{ printf "%s%s%s=%s" "-Dditto.search.operator-metrics.custom-metrics." $key ".scrape-interval" $value.scrapeInterval }}"
{{- end }}
{{- range $index, $namespace := $value.namespaces }}
"{{ printf "%s%s%s%d=%s" "-Dditto.search.operator-metrics.custom-metrics." $key ".namespaces." $index $namespace }}"
{{- end }}
Expand Down

0 comments on commit df4e532

Please sign in to comment.