配置反向代理

       

集群监控部署实例_IP

https://134.111.222.3:1688/devops/monitor

nginx.conf
location ^~ /devops/monitor/ {
   #请求全部转给后端的Grafana
   proxy_pass http://192.168.100.25:3000/;
   proxy_set_header Host $host;
   proxy_set_header X-Real-IP $remote_addr;
   proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}


defaut.ini
# Redirect to correct domain if host header does not match domain
# Prevents DNS rebinding attacks
enforce_domain = false

# The full public facing url
root_url = %(protocol)s://%(domain)s:%(http_port)s/devops/monitor/

View Code

  代理metrics

location ^~ /prom/metrics/ {
           proxy_pass http://192.168.100.34:9215/metrics;
           proxy_set_header Host $host;
           proxy_set_header X-Real-IP $remote_addr;
           proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        }

View Code   

集群监控部署实例_Code_02

   通过nginx代理配置访问metrics页面

 Flink集群监控

       flink无需单独安装exporter,只需要修改一下flink本身的配置文件即可

      

集群监控部署实例_Real_03

      

集群监控部署实例_Real_04

 Mysql监控

     

集群监控部署实例_IP_05

     

集群监控部署实例_Real_06

 自定义监控服务

       

集群监控部署实例_Real_07

       

集群监控部署实例_IP_08

 压缩内容传输

        可以把400G的文件压缩到40G,这样可以提高文件传输效率

        

集群监控部署实例_IP_09