feat(monitoring): general fixup
- added healthcheck for every service
- added nginx second "server" block for monitoring
all monitoring services are now behind this nginx reverse proxy
- fixed logging driver not present for chat service
This commit is contained in:
parent
67c8a9cbd1
commit
8a3481ea8b
10 changed files with 209 additions and 48 deletions
39
nginx/conf/monitoring/locations.conf
Normal file
39
nginx/conf/monitoring/locations.conf
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
# This is required to proxy Grafana Live WebSocket connections.
|
||||
location /kibana {
|
||||
proxy_set_header Host $host;
|
||||
set $upstream_kibana kibana:5601;
|
||||
proxy_pass http://$upstream_kibana;
|
||||
}
|
||||
|
||||
location /cadvisor {
|
||||
proxy_set_header Host $host;
|
||||
set $upstream_cadvisor cadvisor:8080;
|
||||
proxy_pass http://$upstream_cadvisor;
|
||||
}
|
||||
|
||||
location /grafana {
|
||||
proxy_set_header Host $host;
|
||||
rewrite ^/grafana/?(.*) /$1 break;
|
||||
set $upstream_grafana grafana:3000;
|
||||
proxy_pass http://$upstream_grafana;
|
||||
}
|
||||
# Proxy Grafana Live WebSocket connections.
|
||||
location /grafana/api/live/ {
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection $connection_upgrade;
|
||||
proxy_set_header Host $host;
|
||||
rewrite ^/grafana/?(.*) /$1 break;
|
||||
set $upstream_grafana grafana:3000;
|
||||
proxy_pass http://$upstream_grafana;
|
||||
}
|
||||
|
||||
location /ok {
|
||||
add_header Content-Type text/plain;
|
||||
return 200 'healthy';
|
||||
}
|
||||
|
||||
location / {
|
||||
root /var/share/www/monitoring/;
|
||||
index monitoring.index.html;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue