Fix spacing inconsistencies with flags
Change-Id: I83676f62a4cfc7d8e20145a72f28eeab5ef4cc8d
This commit is contained in:
parent
3ded481794
commit
1934d32cdd
@ -15,7 +15,7 @@ apiVersion: v1
|
|||||||
appVersion: v2.12.0
|
appVersion: v2.12.0
|
||||||
description: OpenStack-Helm Prometheus
|
description: OpenStack-Helm Prometheus
|
||||||
name: prometheus
|
name: prometheus
|
||||||
version: 0.1.4
|
version: 0.1.5
|
||||||
home: https://prometheus.io/
|
home: https://prometheus.io/
|
||||||
sources:
|
sources:
|
||||||
- https://github.com/prometheus/prometheus
|
- https://github.com/prometheus/prometheus
|
||||||
|
@ -36,11 +36,11 @@ limitations under the License.
|
|||||||
{{- $flag := $flag | replace "_" "-" }}
|
{{- $flag := $flag | replace "_" "-" }}
|
||||||
{{- if eq $flag "web.enable-admin-api" "web.enable-lifecycle" "storage.tsdb.wal-compression" -}}
|
{{- if eq $flag "web.enable-admin-api" "web.enable-lifecycle" "storage.tsdb.wal-compression" -}}
|
||||||
{{- if $value }}
|
{{- if $value }}
|
||||||
{{- printf "--%s " $flag -}}
|
{{- printf " --%s " $flag -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- $value := $value | toString }}
|
{{- $value := $value | toString }}
|
||||||
{{- printf "--%s=%s " $flag $value }}
|
{{- printf " --%s=%s " $flag $value }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
@ -544,6 +544,8 @@ conf:
|
|||||||
web.enable_admin_api: false
|
web.enable_admin_api: false
|
||||||
# If set to true, allows for http reloads and shutdown of Prometheus
|
# If set to true, allows for http reloads and shutdown of Prometheus
|
||||||
web.enable_lifecycle: false
|
web.enable_lifecycle: false
|
||||||
|
# Enable WAL file compression
|
||||||
|
storage.tsdb.wal-compression: true
|
||||||
scrape_configs:
|
scrape_configs:
|
||||||
template: |
|
template: |
|
||||||
{{- $promHost := tuple "monitoring" "public" . | include "helm-toolkit.endpoints.hostname_fqdn_endpoint_lookup" }}
|
{{- $promHost := tuple "monitoring" "public" . | include "helm-toolkit.endpoints.hostname_fqdn_endpoint_lookup" }}
|
||||||
|
Loading…
Reference in New Issue
Block a user