summaryrefslogtreecommitdiffstats
path: root/roles/openshift_prometheus/defaults
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2018-01-29 03:25:44 -0800
committerGitHub <noreply@github.com>2018-01-29 03:25:44 -0800
commit2ec70a36f50f670887f2f257d348db6332de5d26 (patch)
tree4e9eebca6c1979b57275d0a60ac30cb6dfcb1457 /roles/openshift_prometheus/defaults
parent312692222f11c19df680867b4e497947e343d017 (diff)
parent3de29f6d5a3017b57c553c5e2fb63a50994df840 (diff)
downloadopenshift-2ec70a36f50f670887f2f257d348db6332de5d26.tar.gz
openshift-2ec70a36f50f670887f2f257d348db6332de5d26.tar.bz2
openshift-2ec70a36f50f670887f2f257d348db6332de5d26.tar.xz
openshift-2ec70a36f50f670887f2f257d348db6332de5d26.zip
Merge pull request #6811 from mjudeikis/prometheus-new-template
Automatic merge from submit-queue. Prometheus new template rebase Updating Prometheus for new templates/example. 1. New scraping rules, fixes 2. exposed alert manager 3. clean ansible 4. add a custom annotation for routes (in the example when AVI router in use we need to be able to add custom annotations) 5. Externalise some of the configs Still work in progress... FIY: @zgalor
Diffstat (limited to 'roles/openshift_prometheus/defaults')
-rw-r--r--roles/openshift_prometheus/defaults/main.yaml15
1 files changed, 15 insertions, 0 deletions
diff --git a/roles/openshift_prometheus/defaults/main.yaml b/roles/openshift_prometheus/defaults/main.yaml
index 1b21c4739..37a05f3f0 100644
--- a/roles/openshift_prometheus/defaults/main.yaml
+++ b/roles/openshift_prometheus/defaults/main.yaml
@@ -7,9 +7,24 @@ openshift_prometheus_namespace: openshift-metrics
# defaults hosts for routes
openshift_prometheus_hostname: prometheus-{{openshift_prometheus_namespace}}.{{openshift_master_default_subdomain}}
openshift_prometheus_alerts_hostname: alerts-{{openshift_prometheus_namespace}}.{{openshift_master_default_subdomain}}
+openshift_prometheus_alertmanager_hostname: alertmanager-{{openshift_prometheus_namespace}}.{{openshift_master_default_subdomain}}
+
openshift_prometheus_node_selector: {"region":"infra"}
+openshift_prometheus_service_port: 443
+openshift_prometheus_service_targetport: 8443
+openshift_prometheus_service_name: prometheus
+openshift_prometheus_alerts_service_targetport: 9443
+openshift_prometheus_alerts_service_name: alerts
+openshift_prometheus_alertmanager_service_targetport: 10443
+openshift_prometheus_alertmanager_service_name: alertmanager
+openshift_prometheus_serviceaccount_annotations: []
+l_openshift_prometheus_serviceaccount_annotations:
+ - serviceaccounts.openshift.io/oauth-redirectreference.prom='{"kind":"OAuthRedirectReference","apiVersion":"v1","reference":{"kind":"Route","name":"prometheus"}}'
+ - serviceaccounts.openshift.io/oauth-redirectreference.alerts='{"kind":"OAuthRedirectReference","apiVersion":"v1","reference":{"kind":"Route","name":"alerts"}}'
+ - serviceaccounts.openshift.io/oauth-redirectreference.alertmanager='{"kind":"OAuthRedirectReference","apiVersion":"v1","reference":{"kind":"Route","name":"alertmanager"}}'
+
# additional prometheus rules file
openshift_prometheus_additional_rules_file: null