- What Grafana version and what operating system are you using?
9.5.12 - Ubuntu 22.04.3 LTS - What are you trying to achieve?
I’m trying to combine a GEOJson map & prometheus blackbox metrics. - How are you trying to achieve it?
I’ve added all of my nodes that also have a blackbox ping/http metric into the GEOJson Map & I’ve added onto a layer in the Geomap panel. - What happened?
I cannot find a way to do this, basically when the metric is 0 the color needs to be red and if it’s 1 it needs to be green.
Welcome @hilvenmatz
You cannot find a way to plot on the map or to color the points on the map?
What does your data look like from your query?
I cannot find a way to color the points, I’ve added the points via a geojson file.
I’m using a simple prometheus query to get all of the ping metrics: probe_success{job="blackbox-ping"}
, the result is a list of these: probe_success{instance="nodex", job="blackbox-ping"}
with node’x’ being incremental & corresponding with a name field in the geojson file
Have you looked into key value mapping or the style configuration which you might be able to leverage to style conditionally?
I’m not sure how key value mapping would help here.
And in the style config I can set the colors of the points individually, but not set the color conditionally.
What are the conditions
E.g. if the points name is node1, then it should be colored red if the Prometheus ping metric with name node1, is 0. And green if it’s 1.