Luv33preet
Luv33preet

Reputation: 1867

Adding Functionality to Grafana WorldMap panel

I am using Grafana WorldMap panel and Influxdb as the data source to plot the points of a vehicle.

THIS IS THE MAP IMAGE FROM GRAFANA

Now, I when I hover over these points, it displays like this n/a:NaN

I don't know what is this n/a : NaN, I want that when I hover over these points, I should get that how many times this point is stored in the database(or any other info like the tags associated with these points). How can I do that?

enter image description here

Some data from Influx:

time                geohash      host         location         value
1490602036767444479 tekx7nfjs6rt Luv-Inspiron                  100
1490603677196025990 tduw7hf1k3zs Luv-Inspiron                  15
1490603780222510535 ttw58x6qxue9 Luv-Inspiron                  6
1490603911122290125 ttw58x6qxue9 Luv-Inspiron                  6
1490604983924097158 ttqn096mpz59 Luv-Inspiron                  19
1490699614650281185 dr5rsgyct32n Luv-Inspiron Bangalore        19
1490699654166573019 fdf92s8typst Luv-Inspiron Bangalore        19

I added location just recently, thats why some are not having that location data.

When I add alias(metrics) in the Metrics tab, then these show different colors according to the values, Can you please explain why?

Upvotes: 0

Views: 2987

Answers (1)

IIIIIIIIIIIIIIIIIIIIII
IIIIIIIIIIIIIIIIIIIIII

Reputation: 4088

You are missing two additional steps:

  1. add alias(metric) to your select query
  2. Add metric to your Table Label Field in the Worldmap tab

enter image description here enter image description here

Read more about it in the readme

When I add alias(metrics) in the Metrics tab, then these show different colors according to the values, Can you please explain why?

That's because you defined Thresholds under Worldmap -> Threshold Options

Upvotes: 1

Related Questions