Grafana worldmap: table datasource

南楼画角 提交于 2019-12-03 21:32:06

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!