summaryrefslogtreecommitdiffstats
path: root/roles/openshift_prometheus/templates
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-11-21 14:28:10 -0500
committerGitHub <noreply@github.com>2017-11-21 14:28:10 -0500
commit33350641a1377c66356f8b4b96a7011607a29b50 (patch)
tree68a7f29137f31c09cbf556a6fefed895119adb98 /roles/openshift_prometheus/templates
parentc4c3b29396b13cd9e9ba93543f96967c89d81c42 (diff)
parent84427fb69f2b96f97d733f150c9840f78439786b (diff)
downloadopenshift-33350641a1377c66356f8b4b96a7011607a29b50.tar.gz
openshift-33350641a1377c66356f8b4b96a7011607a29b50.tar.bz2
openshift-33350641a1377c66356f8b4b96a7011607a29b50.tar.xz
openshift-33350641a1377c66356f8b4b96a7011607a29b50.zip
Merge pull request #6175 from zgalor/tunable_prometheus
Allow modifying and adding prometheus application arguments
Diffstat (limited to 'roles/openshift_prometheus/templates')
-rw-r--r--roles/openshift_prometheus/templates/prometheus.j25
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 }}"