grafana / worldmap-panel

Worldmap panel plugin for Grafana 3.0 that can be overlaid with circles for data points.
MIT License
312 stars 199 forks source link

Prometheus rendering #167

Open sachaz opened 6 years ago

sachaz commented 6 years ago

I just followed this article:

https://www.robustperception.io/using-geohashes-with-the-worldmap-panel-and-prometheus

It's working I can plot a circle on the map with the geohash.

Now next step how could I have a map of up{group="XXX",job="node"} to show me in red/green the site's status ?

I don't get how to change the Worldmap's Threshold and worst how to combinate my geoash to another Prometheus metric :(

davidlesicnik commented 5 years ago

+1 For this. I've been trying to fit multiple prometheus nodes into one "site" for a few days now and I haven't found a good solution. Just doing up{tag="[location]"} (where each job within the tag has it's geohash) just overlays them over each other and you can't see if the bottom ones are red.

I tried being smart and doing avg(up{tag="[location]"}) and then checking if it's <1, but then the geohash column gets truncated with the avg command.

This is what just doing up{} returns: https://imgur.com/a/4ZuAGrs as you can see, the vcenter exporter is down.

And if I do avg(up{}) then it only returns the time and the avg of the values, no other fields. Is there a way of doing this or am I just going about this the completely wrong way?