소스 검색

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