zoukankan      html  css  js  c++  java
  • nginx 代理 (监控+elk)

    upstream grarana {
        server 192.168.188.69:3000 weight=1 max_fails=3 fail_timeout=60;
    }
    
    
    upstream openapollo {
        server 192.168.188.69:30089 weight=1 max_fails=3 fail_timeout=60;
    }
    
    upstream basisapollo {
        server 192.168.188.69:37089 weight=1 max_fails=3 fail_timeout=60;
    }
    
    upstream maintaine {
        server 192.168.188.69:30012 weight=1 max_fails=3 fail_timeout=60;
    }
    
    
    upstream prometheus {
        server 192.168.188.69:9090 weight=1 max_fails=3 fail_timeout=60;
    }
    
    
    
    
    upstream kibana_server {
        server 192.168.188.69:15601 weight=1 max_fails=3 fail_timeout=60;
    }
    
    
    
    
    
    server {
        listen 710;
    
    
       location / {
           root    /var/www/html;
           index  index.html index.htm;
      }
    
    }
    
    server {
        listen 711;
    
        location / {
            proxy_pass http://grarana;
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection 'upgrade';
            proxy_set_header Host $host;
            proxy_cache_bypass $http_upgrade;
        }
    
    
    }
    
    
    
    server {
        listen 712;
    
        location / {
            proxy_pass http://openapollo;
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection 'upgrade';
            proxy_set_header Host $host;
            proxy_cache_bypass $http_upgrade;
        }
    
    
    }
    
    
    
    server {
        listen 713;
    
        location / {
            proxy_pass http://basisapollo;
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection 'upgrade';
            proxy_set_header Host $host;
            proxy_cache_bypass $http_upgrade;
        }
    
    
    }
    
    server {
        listen 714;
    
        location / {
            proxy_pass http://maintaine;
            #proxy_http_version 1.1;
            #proxy_set_header Upgrade $http_upgrade;
            #proxy_set_header Connection 'upgrade';
            #proxy_set_header Host $host;
            #proxy_cache_bypass $http_upgrade;
        }
    
    
    }
    
    
    server {
        listen 715;
    
        location / {
            proxy_pass http://prometheus;
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection 'upgrade';
            proxy_set_header Host $host;
            proxy_cache_bypass $http_upgrade;
        }
    
    
    }
    
    
    server {
        listen 716;
       
        location / {
            proxy_pass http://kibana_server;
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection 'upgrade';
            proxy_set_header Host $host;
            proxy_cache_bypass $http_upgrade;
        }
    
    
    }
    View Code
  • 相关阅读:
    MySQL错误 1030-Got error 28 from storage engine
    电脑开机无反应 不显示BIOS 硬件没问题
    python错误 import: unable to open X server
    Python 错误 invalid command 'bdist_wheel' & outside environment /usr
    Cento 7安装 Failed to execute /init
    笔记《鸟哥的Linux私房菜》5 首次登入与在线求助 man
    Scrapy XPath语法
    Linux 用户操作
    Mysql 表修改
    Ubuntu 配置 Python环境 IPython
  • 原文地址:https://www.cnblogs.com/hanwei666/p/15239662.html
Copyright © 2011-2022 走看看