Просмотр исходного кода

[bz1552516] set the external url of prometheus

This allows the alertmanager to correctly link back to prometheus.
Paul Gier 6 лет назад
Родитель
Сommit
b8839f5d84
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      roles/openshift_prometheus/templates/prometheus.j2

+ 1 - 0
roles/openshift_prometheus/templates/prometheus.j2

@@ -80,6 +80,7 @@ spec:
 {% endfor %}
         - --config.file=/etc/prometheus/prometheus.yml
         - --web.listen-address=localhost:9090
+        - --web.external-url=https://{{ openshift_prometheus_hostname }}
         image: "{{ openshift_prometheus_image }}"
         imagePullPolicy: IfNotPresent
         livenessProbe: