问题
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:
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.
回答1:
Here is how I was able to use the worldmap panel with a table datasource from influxdb:
The table data:
{
"measurement": "ghash",
"tags": {
"host": host,
"geohash": geohash
},
"fields": {
"value": 1
}
}
The query inside Grafana:
Worldmap tab:
来源:https://stackoverflow.com/questions/38218814/grafana-worldmap-table-datasource