Browse Source

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 years ago
parent
commit
05d06807cf
1 changed files with 1 additions and 0 deletions
  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