In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to use worldmap-panel to achieve a world map in Grafana. The content of the article is of high quality, so the editor shares it for you as a reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.
Worldmap plug-in installation
Grafana plug-ins are relatively easy to install and can be installed directly through documentation.
Https://grafana.com/grafana/plugins/grafana-worldmap-panel/installation
Install the plug-in
Restart after the installation is complete, and you can see the Panel in Visualization.
Worldmap solves the problem that map background is not displayed.
Maybe a lot of people have the same problem as me. The plug-in can't display the map background after installing the plug-in. Normally, even if we don't have any data, there should be a map of the world.
In fact, the main problem is the network, the access address of worldmap-panel needs to be modified.
Go to the installation directory of the worldmap plug-in and back up three files
1.1 grafana-worldmap-panel\ src\ worldmap.ts
1.2 grafana-worldmap-panel\ dist\ module.js
1.3 grafana-worldmap-panel\ dist\ module.js.map
Modify the url in the file.
2.1 change https://cartodb-basemaps-{s}.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png to http://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png
2.2 change https://cartodb-basemaps-{s}.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png to http://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png
Introduction to use of worldmap-panel
After performing the above fix, worldmap has been able to display the background of the map properly, so we can start to introduce the use of worldmap-panel.
Worldmap-panel can see from the documentation of the plug-in that the data sources it supports include Graphite, InfluxDB, OpenTSDB, Prometheus, MySQL, PostgreSQL and other data sources. Supports the data form of table data and time series. The form of table data requires that each piece of data has latitude and longitude coordinates in geohash format.
Location Data service implementation
You need to implement a map of the user's area. Data can be returned to geohash. Then the specific data needed is geohash, the name of the region, and the number of people.
GeoHash Setting
You can view the final result directly.
On how to use worldmap-panel in Grafana to achieve a world map is shared here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.