grafana / worldmap-panel

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

Multiple metrics on the same map? #59

Open drzhouq opened 7 years ago

drzhouq commented 7 years ago

For single metric, the map displays the location and data correctly. For multiple metrics, the map only displays one metric. I haven't dived into the code, but just curious does this plugin support multiple metrics?

Thanks, John

daniellee commented 7 years ago

Yes, it should. It should support both multiple time series and multiple queries in Grafana.

An example with two queries:

image

An example with one query and multiple time series:

image

drzhouq commented 7 years ago

Thanks for the example, @daniellee My issue is slightly different. I have two time-series share the same locations. Therefore, one location has two metric data. I found the map's popup only show one metric and also the icon is based on one metric as well.

daniellee commented 7 years ago

What does the query look like? And why do you not aggregrate (sum, max etc.) by location?

I think it does show multiple circles when there are multiple values for a location but the popup will only work for the circle on top. If you want support for this, could you describe your use case for it please. (why have multiple circles per location rather than grouping values per location)

drzhouq commented 7 years ago

Thanks, @daniellee . A simple use case is like this, I want to show live both the wind speed and temperature for one location. I think this is a very common use case, that's why I thought you must have implemented it and I just don't know how to configure it correctly.

daniellee commented 7 years ago

Personally, I have only used it to with one measurement per map. I built it for the worldPing app where we have different dashboards per measurement e.g. dns errors:

image

I'll mark this as a feature request then. Any thoughts on how you would represent the different values?

At the moment, the size of the circle indicates the relative size of value. For example, if there are two locations, A and B, and A has value 100 and B has value 50 then A's circle is twice as big as B's. With this feature the circles would overlap so if A and B were for the same location, B's circle would be hidden under A's circle.

drzhouq commented 7 years ago

Daniel, I agree we only need select one metric to be color rendered by its value. For the multiple metrics, we use the first metric to color/size the symbol (circle) and we display all metric values in the popup window.

stewba commented 7 years ago

I have a similar use case to @drzhouq where I want to display multiple metrics that are on the same scale, but have different meaning (ie water,air,land temperatures) so aggregating has no meaning. For my purposes, being able to differentiate the metric by shape (circle,square,triangle or similar) would be a useful way of handling it as you would be able to quickly see what type of measurement is where.

emanuelis commented 7 years ago

We use InfluxDB with geohash'es and it works great with one query. But the second query just doesn't work. We can aggregate data to one query, but there is no way to show different meaning metrics with circles of different color and size.

joelraburton commented 7 years ago

I have a similar case with needing to display multiple metrics. Ideally clicking on the one circle would either allow you to cycle through all the metrics at the same location or display an overlay box with all the metrics in it.

MaxDiOrio commented 6 years ago

I'll add my "me too" to the list. We run websites and we'd like to display hit data. One metric for raw hits, and one for unique hits by IP address. I would think you can do dots side by side with different color ranges per query. Or overlay the dots with different colors and show both metrics when hovering.

r02b commented 6 years ago

+1. This is crucial when wanting to display metrics from different data sources.

mccartyb03 commented 5 years ago

Throwing my hat into this one as well. It's not critical for me but in my use case it would be helpful: Currently building out a circuit monitoring system that remotely pings circuit provider edge router IP's at our various data centers around the US and returns the data to Grafana. There are a few DC's with multiple circuits and showing them on the map only shows a single green circle. Aggregating these value's would not help.

ropieur commented 5 years ago

I have a similar use case, but with graphs. Typically, 2 metrics correlated to each other with same or different units. We'd like to show the 2 correlated metrics for multiple sites, both metrics being rendered in the same color but having different aspects (continuous line vs dash line or dot points vs triangle dots ...) Currently, we have 2 different queries (one per metric) on the same graph, we managed to render differently thanks to the regex, but impossible to assign the same color per site. Here follows an example: image

baskinsy commented 5 years ago

I have also a use case where we are trying to display environmental data, specifically particulate matter 2.5 and 10 micrometers on the same location. In addition specifying different thresholds for the colors for each metric would be a very helpful extra.

diamondo25 commented 4 years ago

Yes, it would be nice to have something like the graph panel, where you supply multiple metrics and choose one for the coloring/ring size and the others will be shown in the tooltip. For the graph panel you'd need to disable rendering the points, but the idea is the same.

This feature would be very useful for moving objects and you want to show things like temperature and signal quality on the same.point, and use a metric for the "state" of the dot (eg good or bad)

HenrikRolandHansen commented 4 years ago

I have tried to to use 2 queries as a workaround, due to not be able to add non time series with fixed positions like poly-lines or place markers. (would be nice with a feature to add poly lines to illustrate cables or points of interest ect.)

But I have not been able to make them work at the same time, only able to view the one query if I disable/enable the A query. Is it not possible to make them work both at same time?

image

A: Query enabled

image

A: Query Diabled

image

Love Grafana :)

Cheers Henrik

Alex-Smart commented 4 years ago

This would be great. For example I want to show on the map green dots/circles for successfull requests to a server (i.e. 200 code) and red ones for failed. But for now only different maps...

amotl commented 4 years ago

Hi there,

on https://github.com/panodata/grafana-map-panel/issues/43, we started collecting requests from different people all looking into the same direction the other day.

With kind regards, Andreas.

robynhub commented 4 years ago

+1 here. I have a gps data on one measurement and the signals level on another and I can't mix it. I think this is very common for who is using WorldMap Plugin and InfluxDB on lora coverage mapping applications.

nasielgf commented 4 years ago

same problem over here!

nasielgf commented 4 years ago

+1 here. I have a gps data on one measurement and the signals level on another and I can't mix it. I think this is very common for who is using WorldMap Plugin and InfluxDB on lora coverage mapping applications.

Hi @robynhub. I have the same situation, did you find some solution? Thks

weedaj commented 3 years ago

+1

MarcoCavalazzi commented 3 years ago

+1. I would love to be able to display multiple queries on the same map!

Sudhishna commented 3 years ago

+1. would like to have this feature.

davaxi commented 2 years ago

+1

Qomaa commented 2 years ago

+1

nhatfield commented 2 years ago

Seeing a second data layer is a huge win in my book. My use case is for lora as well, where I want to be able to see:

Love the map, just time for it do get an upgrade :)

mihnea2kx commented 2 years ago

+1

hugobarzano commented 1 year ago

+1