diff options
author | Zohar Galor <zgalor@redhat.com> | 2017-11-19 15:22:08 +0200 |
---|---|---|
committer | Zohar Galor <zgalor@redhat.com> | 2017-11-19 15:22:08 +0200 |
commit | 84427fb69f2b96f97d733f150c9840f78439786b (patch) | |
tree | cb0a45a8a984fba25f65b437595c53dbba4735fd /roles/openshift_prometheus/templates | |
parent | 71ac647d479768a1e3097a3dde02b9707d175a38 (diff) | |
download | openshift-84427fb69f2b96f97d733f150c9840f78439786b.tar.gz openshift-84427fb69f2b96f97d733f150c9840f78439786b.tar.bz2 openshift-84427fb69f2b96f97d733f150c9840f78439786b.tar.xz openshift-84427fb69f2b96f97d733f150c9840f78439786b.zip |
Allow modifying and adding prometheus application arguments
config.file and web.listen-address remain unconfigurable (Changing those will break deployment)
Storage defaults moved to a list parameter `openshift_prometheus_args` that can be modified and extended.
Diffstat (limited to 'roles/openshift_prometheus/templates')
-rw-r--r-- | roles/openshift_prometheus/templates/prometheus.j2 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/roles/openshift_prometheus/templates/prometheus.j2 b/roles/openshift_prometheus/templates/prometheus.j2 index 456db3a57..e73a94eee 100644 --- a/roles/openshift_prometheus/templates/prometheus.j2 +++ b/roles/openshift_prometheus/templates/prometheus.j2 @@ -75,8 +75,9 @@ spec: - name: prometheus args: - - --storage.tsdb.retention=6h - - --storage.tsdb.min-block-duration=2m +{% for arg in openshift_prometheus_args %} + - {{ arg }} +{% endfor %} - --config.file=/etc/prometheus/prometheus.yml - --web.listen-address=localhost:9090 image: "{{ l_openshift_prometheus_image_prefix }}prometheus:{{ l_openshift_prometheus_image_version }}" |