概要说明
grafana 支持地图组件,可以实现在地图上标记或覆盖热力图等。初步调研了一下,grafana的主要使用点记录一下。
安装文档及下载地址:https://grafana.com/grafana/plugins/grafana-worldmap-panel/?tab=installation
如下:也可以直接服务器上一条命令安装,我是下载解压缩的。
命令安装
grafana-cli plugins install grafana-worldmap-panel
1.解压缩方式
1.进入目录
cd /var/lib/grafana/plugins
2.上传下载后的文件grafana-worldmap-panel-1.0.3.zip
3.解压缩(centos 7系统)
yum -y install zip unzip
unzip grafana-worldmap-panel-1.0.3.zip
解压缩(ubuntu系统)
sudo apt-get install unzip
unzip grafana-worldmap-panel-1.0.3.zip
完成
2.查看服务状态
systemctl status grafana-server
3.从启动服务
systemctl status grafana-server
下面是几个地图组件的几个参考网站(全英文版本)。
grafana官方文档:Geomap | Grafana documentation
https://grafana.com/docs/grafana/latest/panels-visualizations/visualizations/geomap/
carto 地图说明:carto_attr
https://carto.com/attribution/
几个获取地理位置信息的途径:
- GeoNames (under Creative Commons Attribution 3.0);
http://www.geonames.org/
- Natural Earth
https://www.naturalearthdata.com/
- TomTom
https://www.tomtom.com/en_gb/thirdpartyproductterms/
- HERE
https://legal.here.com/en-gb/terms/general-content-supplier-terms-and-notices
- Mapbox
https://www.mapbox.com/about/maps/
https://cloud.google.com/maps-platform/terms/