Adding geotagging to monitors in heartbeat

Hello,

I am wondering if there is a possibility to add geoTagging to the monitors. For example. If I have a centralized elasticsearch from where I am running heartbeat and I am setting up a monitor for the services that are running on different datacenters in EU, US, I would like to have the ability to be able to show up the monitors for those datacenters in the map app. Can I do something like that?

Yes, this is possible! There are two things you may want to geotag: 1. where heartbeat is 2. where the thing it is monitoring is.

For specifying where heartbeat is see this doc.

For specifying where the thing that's being monitored is I would add the ECS Geo fields at the root of the document which should work with the maps app. You can use the add_fields processor to do so. You can set processors per heartbeat monitor add the add_fields processor there with the requisite geo fields.

Perfect. I will certainly try it as soon as I have a bit of time to work on it.