Sfoglia il codice sorgente

Specify external URL for Prometheus

Any links coming from prometheus or alert manager need an external URL, otherwise they end up pointing directly at the pod (http://prometheus-0:9090/graph).
Patrick Tescher 6 anni fa
parent
commit
a8da8e3f4b
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      roles/openshift_prometheus/templates/prometheus.j2

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

@@ -233,6 +233,7 @@ spec:
       - name: alertmanager
         args:
         - --config.file=/etc/alertmanager/alertmanager.yml
+        - --web.external-url=https://{{ openshift_prometheus_alertmanager_hostname }}
         image: "{{ openshift_prometheus_alertmanager_image }}"
         imagePullPolicy: IfNotPresent
         resources: