集群监控部署实例
配置反向代理
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/
代理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; }
通过nginx代理配置访问metrics页面
Flink集群监控
flink无需单独安装exporter,只需要修改一下flink本身的配置文件即可
Mysql监控
自定义监控服务
压缩内容传输
可以把400G的文件压缩到40G,这样可以提高文件传输效率
本文来自博客园,作者:不懂123,转载请注明原文链接:https://www.cnblogs.com/yxh168/p/16229288.html