summaryrefslogtreecommitdiffstats
path: root/roles/openshift_prometheus
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
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')
-rw-r--r--roles/openshift_prometheus/defaults/main.yaml2
-rw-r--r--roles/openshift_prometheus/tasks/install_prometheus.yaml5
2 files changed, 5 insertions, 2 deletions
diff --git a/roles/openshift_prometheus/defaults/main.yaml b/roles/openshift_prometheus/defaults/main.yaml
index 18d6a1645..5aa8aecec 100644
--- a/roles/openshift_prometheus/defaults/main.yaml
+++ b/roles/openshift_prometheus/defaults/main.yaml
@@ -11,7 +11,7 @@ openshift_prometheus_node_selector: {"region":"infra"}
openshift_prometheus_image_proxy: "openshift/oauth-proxy:v1.0.0"
openshift_prometheus_image_prometheus: "openshift/prometheus:v2.0.0-dev"
openshift_prometheus_image_alertmanager: "openshift/prometheus-alertmanager:dev"
-openshift_prometheus_image_alertbuffer: "ilackarms/message-buffer"
+openshift_prometheus_image_alertbuffer: "openshift/prometheus-alert-buffer:v0.0.1"
# additional prometheus rules file
openshift_prometheus_additional_rules_file: null
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: >