grafana / worldmap-panel

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

Custom Colors for Maps #246

Open wainerthemainer opened 4 years ago

wainerthemainer commented 4 years ago

In addition to thresholds controlling the colors of datapoints, I have been looking into trying to get just custom set colors based on a specific query set. For example currently you can set the threshold to make it either red, yellow, green, but it would be very useful if there was a section under Visualization that you could add multiple lucene queries that could be tied to a color so then like app:"app1" and then app:"app2" could be two different colors. Or even if it was just in the Query section, having an option to just set the colors manually for each query listed.

amotl commented 4 years ago

Dear @wainerthemainer,

are you actually asking to display multiple metrics on the same map, like outlined within https://github.com/panodata/grafana-map-panel/issues/43 including its references?

With kind regards, Andreas.

wainerthemainer commented 4 years ago

Well in my case they are the same metrics, as in the lucene queries are formatted the same, but depending on the value of one of the params in the query, it means it is coming from a different instance of our application. But essentially yes, just have a way that isn't thresholds to have different colors or even shapes like @stewba mentioned. So yes display multiple metrics on the same map and differentiate with color or shapes.

amotl commented 4 years ago

Thanks for clarifying this. We added your request to the issue over at https://github.com/panodata/grafana-map-panel/issues/43. We hope to be able to catch some time to work on that within the next months.