Преглед на файлове

Add prometheus port annotation for Grafana service

All three ports were being scraped by Prometheus but only one worked.

Related to https://github.com/openshift/openshift-ansible/issues/7986
Patrick Tescher преди 6 години
родител
ревизия
05d06807cf
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      roles/openshift_grafana/tasks/install_grafana.yaml

+ 1 - 0
roles/openshift_grafana/tasks/install_grafana.yaml

@@ -61,6 +61,7 @@
     annotations:
       prometheus.io/scrape: "true"
       prometheus.io/scheme: https
+      prometheus.io/port: "{{ grafana_service_targetport }}"
       service.alpha.openshift.io/serving-cert-secret-name: grafana-tls
     ports:
     - name: grafana