diff options
author | Christian Pointner <equinox@spreadspace.org> | 2021-06-24 22:29:26 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2021-06-24 22:29:26 +0200 |
commit | 6c990fd148f8813dcbafbf2e27fa5ecbe88af5dc (patch) | |
tree | 5e1d71a45610f4c29c3679edc817b5f0aa1aed7d /chaos-at-home | |
parent | prometheus: connect server to alertmanager if configured (diff) |
move monitoring web interfaces into common nginx vhost
Diffstat (limited to 'chaos-at-home')
-rw-r--r-- | chaos-at-home/ch-mon.yml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/chaos-at-home/ch-mon.yml b/chaos-at-home/ch-mon.yml index 906e8adc..bb20677f 100644 --- a/chaos-at-home/ch-mon.yml +++ b/chaos-at-home/ch-mon.yml @@ -15,3 +15,16 @@ - role: monitoring/prometheus/alertmanager - role: monitoring/prometheus/server - role: monitoring/grafana + - role: nginx/vhost + nginx_vhost: + name: monitoring + template: generic-proxy-no-buffering + hostnames: + - "_" + locations: + '/grafana/': + proxy_pass: "http://127.0.0.1:3000" + '/prometheus/': + proxy_pass: "http://127.0.0.1:9090" + '/alertmanager/': + proxy_pass: "http://127.0.0.1:9093" |