Grafana世界地图:表格数据源 [英] Grafana worldmap: table datasource
问题描述
我正在尝试将grafana的worldmap插件与表数据作为数据源(在我的情况下为influxdb)一起使用,最新版本对此提供了支持. 链接
I am trying to use the worldmap plugin of grafana with table data as datasource (in my case influxdb) which got supported with the newest version. link
但是很遗憾,我无法使其正常运行.我使用与插件文档中相同的查询,但我的世界地图中未显示任何点.这是我的查询的屏幕截图:
But sadly I am not able to get it working. I use the same query as in the docu of the plugin but no points are shown in my worldmap. Here are the screenshots of my query:
这是我如何插入influxdb的示例:
This is a example how I insert into influxdb:
json_body = [
{
"measurement": measurement,
"tags": {
"host": host,
"geohash": geohash
},
"fields": {
"metric": 1
}
}
]
如果有人可以在这里指出我的问题,那将非常高兴.
It would be really happy if some1 can point me to my problem here.
推荐答案
这是我如何将Worldmap面板与来自influxdb的表数据源一起使用的方法:
Here is how I was able to use the worldmap panel with a table datasource from influxdb:
表数据:
{
"measurement": "ghash",
"tags": {
"host": host,
"geohash": geohash
},
"fields": {
"value": 1
}
}
Grafana内部的查询:
The query inside Grafana:
世界地图"标签:
这篇关于Grafana世界地图:表格数据源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!