From 1934d32cdd110686d82e2e9352829ffefcb27508 Mon Sep 17 00:00:00 2001 From: "Smith, David (ds3330)" Date: Tue, 5 Jan 2021 21:30:03 +0000 Subject: [PATCH] Fix spacing inconsistencies with flags Change-Id: I83676f62a4cfc7d8e20145a72f28eeab5ef4cc8d --- prometheus/Chart.yaml | 2 +- prometheus/templates/utils/_command_line_flags.tpl | 4 ++-- prometheus/values.yaml | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) 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" }}