Those are my hosts in CheckMK
I want the final result to look smth like that :
So if host is UP = GREEN DOWN = RED d marker
What would be the best approach to this.
Those are my hosts in CheckMK
I want the final result to look smth like that :
So if host is UP = GREEN DOWN = RED d marker
What would be the best approach to this.
doesn’t look like you can with geomap unless your data is coming as geojson in which case you can use Style config
Another way you can do it is by using Business Text plugin with leaflet js
var circle = L.circle([lat, lon], {
color: 'green',
fillColor: '#00FF00',
fillOpacity: 0.5,
radius: 500
}).addTo(map);
Thank you for fast reply… now i am able to get data in grafana via my own API that transforms data to GJSON :
I did this for checkmk:
In checkmk i added some additional labels for location name, latitude and longitude:
then I used the infinity datasource to query the checkmk rest api (test folder, you can query any folder):
I used the csv export option in chekcmk as the json export is not proper json, and the column separator is a ;
I had to use a transformation, extract fields, on the host labels column, as they all come through in one set, to split up each label
Then I configured the data layer as follows:
This is to tell it which fields to use for latitude and longitude
then finally a value mapping to show the colour depending on up or down:
the long and lat are not showing up in the csv table :
sorry about that, I also customized my allhosts view to include the labels so it is visible to the api:
share your panel when you get it working?
awesome stuff @sowdenraymond !!! Is the override for the color working on the geojson layer or on another layer? I cant seem to make it work on my map
can you post a snip of your allhosts view like this:
can you try making the view public?
solved now i just need to extract fields… thanks
even after changing the view to public i am unable to export labels as csv:
add a transform to convert those two fields to numeric
you can also add a filter data by values transform to filter out the top column that shows the headings if necessary