1. 程式人生 > 其它 >叢集監控部署例項

叢集監控部署例項

配置反向代理

       

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

   

   通過nginx代理配置訪問metrics頁面

 Flink叢集監控

       flink無需單獨安裝exporter,只需要修改一下flink本身的配置檔案即可

      

      

 Mysql監控

     

     

 自定義監控服務