一、背景:Grafana读取ES-Nginx数据后地图不展示
二、解决方法
[root@sg grafana-worldmap-panel]# pwd
/var/lib/grafana/plugins/grafana-worldmap-panel
[root@sg grafana-worldmap-panel]#
[root@sg grafana-worldmap-panel]# sed -i 's/https:\/\/cartodb-basemaps{s}.global.ssl.fastly.net\/light_all\/{z}\/{x}\/{y}.png/http:\/\/{s}.basemaps.cartocdn.com\/light_all\/{z}\/{x}\/{y}.png/' module.js module.js.map
[root@sg grafana-worldmap-panel]# sed -i 's/https:\/\/cartodb-basemaps-{s}.global.ssl.fastly.net\/dark_all\/{z}\/{x}\/{y}.png/http:\/\/{s}.basemaps.cartocdn.com\/dark_all\/{z}\/{x}\/{y}.png/' module.js module.js.map
重启Grafana
systemctl restart grafana-server