diff --git a/prometheus/Chart.yaml b/prometheus/Chart.yaml index 0f55020ed..4b958c3db 100644 --- a/prometheus/Chart.yaml +++ b/prometheus/Chart.yaml @@ -15,7 +15,7 @@ apiVersion: v1 appVersion: v2.12.0 description: OpenStack-Helm Prometheus name: prometheus -version: 0.1.4 +version: 0.1.5 home: https://prometheus.io/ sources: - https://github.com/prometheus/prometheus diff --git a/prometheus/templates/utils/_command_line_flags.tpl b/prometheus/templates/utils/_command_line_flags.tpl index bb143f9d9..229fae266 100644 --- a/prometheus/templates/utils/_command_line_flags.tpl +++ b/prometheus/templates/utils/_command_line_flags.tpl @@ -36,11 +36,11 @@ limitations under the License. {{- $flag := $flag | replace "_" "-" }} {{- if eq $flag "web.enable-admin-api" "web.enable-lifecycle" "storage.tsdb.wal-compression" -}} {{- if $value }} -{{- printf "--%s " $flag -}} +{{- printf " --%s " $flag -}} {{- end -}} {{- else -}} {{- $value := $value | toString }} -{{- printf "--%s=%s " $flag $value }} +{{- printf " --%s=%s " $flag $value }} {{- end -}} {{- end -}} {{- end -}} diff --git a/prometheus/values.yaml b/prometheus/values.yaml index ad8f5c863..9c5b7b879 100644 --- a/prometheus/values.yaml +++ b/prometheus/values.yaml @@ -544,6 +544,8 @@ conf: web.enable_admin_api: false # If set to true, allows for http reloads and shutdown of Prometheus web.enable_lifecycle: false + # Enable WAL file compression + storage.tsdb.wal-compression: true scrape_configs: template: | {{- $promHost := tuple "monitoring" "public" . | include "helm-toolkit.endpoints.hostname_fqdn_endpoint_lookup" }}