feat(monitoring): fixes issues
This commit is contained in:
parent
3fd3635fd1
commit
41fdbfbaaa
3 changed files with 15 additions and 14 deletions
|
|
@ -1,30 +1,31 @@
|
|||
# This is required to proxy Grafana Live WebSocket connections.
|
||||
set $upstream_kibana kibana:5601;
|
||||
set $upstream_cadvisor cadvisor:8080;
|
||||
set $upstream_grafana grafana:3000;
|
||||
|
||||
location /kibana {
|
||||
proxy_set_header Host $host;
|
||||
set $upstream_kibana kibana:5601;
|
||||
proxy_set_header Host $host;
|
||||
proxy_pass http://$upstream_kibana;
|
||||
}
|
||||
|
||||
location /cadvisor {
|
||||
proxy_set_header Host $host;
|
||||
set $upstream_cadvisor cadvisor:8080;
|
||||
proxy_set_header Host $host;
|
||||
proxy_pass http://$upstream_cadvisor;
|
||||
}
|
||||
|
||||
location /grafana {
|
||||
proxy_set_header Host $host;
|
||||
rewrite ^/grafana/?(.*) /$1 break;
|
||||
set $upstream_grafana grafana:3000;
|
||||
rewrite ^/grafana/?(.*) /$1 break;
|
||||
proxy_pass http://$upstream_grafana;
|
||||
}
|
||||
|
||||
# This is required to proxy Grafana Live WebSocket connections.
|
||||
# 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;
|
||||
rewrite ^/grafana/?(.*) /$1 break;
|
||||
proxy_pass http://$upstream_grafana;
|
||||
}
|
||||
|
||||
|
|
@ -36,4 +37,4 @@ location /ok {
|
|||
location / {
|
||||
root /var/share/www/monitoring/;
|
||||
index monitoring.index.html;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue