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
  • 相关阅读:
    python 正则表达式
    python 递归查找
    MYSQL 索引优化,避免回表
    MYSQL ibtmp文件暴增
    mysql 主从复制刷新参数
    MYSQL 复制数据过滤
    快速入门Kubernetes
    ansible之playbook的编写
    ansible的安装及常用模块详解
    ERROR Failed to discover available identity versions when contacting http://ct:5000/v3.
  • 原文地址:https://www.cnblogs.com/hanwei666/p/15239662.html
Copyright © 2011-2022 走看看