summaryrefslogtreecommitdiffstats
path: root/roles/openshift_prometheus/tasks
diff options
context:
space:
mode:
authorZohar Galor <zgalor@redhat.com>2017-09-18 14:30:43 +0300
committerZohar Galor <zgalor@redhat.com>2017-09-18 14:32:33 +0300
commitc4a98da82c697dd63c120ac8cd8e724eb2ccce20 (patch)
treec3791d199af143063737fac7d7448b167d6cf5c4 /roles/openshift_prometheus/tasks
parentb124c678a9ac8c723f3576a03276de7cfd051931 (diff)
downloadopenshift-c4a98da82c697dd63c120ac8cd8e724eb2ccce20.tar.gz
openshift-c4a98da82c697dd63c120ac8cd8e724eb2ccce20.tar.bz2
openshift-c4a98da82c697dd63c120ac8cd8e724eb2ccce20.tar.xz
openshift-c4a98da82c697dd63c120ac8cd8e724eb2ccce20.zip
Prometheus role fixes
- Use official prometheus-alert-buffer image - Add prometheus annotations to service
Diffstat (limited to 'roles/openshift_prometheus/tasks')
-rw-r--r--roles/openshift_prometheus/tasks/install_prometheus.yaml5
1 files changed, 4 insertions, 1 deletions
diff --git a/roles/openshift_prometheus/tasks/install_prometheus.yaml b/roles/openshift_prometheus/tasks/install_prometheus.yaml
index 93bdda3e8..a9bce2fb1 100644
--- a/roles/openshift_prometheus/tasks/install_prometheus.yaml
+++ b/roles/openshift_prometheus/tasks/install_prometheus.yaml
@@ -107,7 +107,10 @@
- name: annotate prometheus service
command: >
{{ openshift.common.client_binary }} annotate --overwrite -n {{ openshift_prometheus_namespace }}
- service prometheus 'service.alpha.openshift.io/serving-cert-secret-name=prometheus-tls'
+ service prometheus
+ prometheus.io/scrape='true'
+ prometheus.io/scheme=https
+ service.alpha.openshift.io/serving-cert-secret-name=prometheus-tls
- name: annotate alerts service
command: >