diff options
author | Zohar Galor <zgalor@redhat.com> | 2017-06-20 17:28:07 +0300 |
---|---|---|
committer | Zohar Galor <zgalor@redhat.com> | 2017-09-06 12:08:41 +0300 |
commit | ec75d0ac888f3fab87f8d335224596df045e260a (patch) | |
tree | cc685087a63d6388cb447e532d92564e9c2cc393 /roles/openshift_prometheus/templates/alertmanager.yml.j2 | |
parent | b5cf769b97691d75e07d1e0e3b29ecbc31ba32ea (diff) | |
download | openshift-ec75d0ac888f3fab87f8d335224596df045e260a.tar.gz openshift-ec75d0ac888f3fab87f8d335224596df045e260a.tar.bz2 openshift-ec75d0ac888f3fab87f8d335224596df045e260a.tar.xz openshift-ec75d0ac888f3fab87f8d335224596df045e260a.zip |
Create ansible role for deploying prometheus on openshift
A new role for installing prometheus on openshift.
Depends on `openshift_hosted_prometheus_deploy` flag
role creates:
- prometheus namespace
- prometheus clusterrolebinding and service account
- pvs for prometheus, alertmanager and alertbuffer for internal nfs
- prometheus pod with prometheus behind oauth-proxy, alertmanager and alert-buffer behind oauth-proxy
- prometheus and alertmanager configmaps
- prometheus and alerts services and direct routes
- prometheus, alertmanager and alert-buffer pvcs
Diffstat (limited to 'roles/openshift_prometheus/templates/alertmanager.yml.j2')
-rw-r--r-- | roles/openshift_prometheus/templates/alertmanager.yml.j2 | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/roles/openshift_prometheus/templates/alertmanager.yml.j2 b/roles/openshift_prometheus/templates/alertmanager.yml.j2 new file mode 100644 index 000000000..6c432a3d0 --- /dev/null +++ b/roles/openshift_prometheus/templates/alertmanager.yml.j2 @@ -0,0 +1,20 @@ +global: + +# The root route on which each incoming alert enters. +route: + # default route if none match + receiver: alert-buffer-wh + + # The labels by which incoming alerts are grouped together. For example, + # multiple alerts coming in for cluster=A and alertname=LatencyHigh would + # be batched into a single group. + # TODO: + group_by: [] + + # All the above attributes are inherited by all child routes and can + # overwritten on each. + +receivers: +- name: alert-buffer-wh + webhook_configs: + - url: http://localhost:9099/topics/alerts |