JamesOsgood / mongodb-grafana

MongoDB plugin for Grafana
MIT License
464 stars 213 forks source link

MongoDB with Grafana Worldmap #69

Open timstalli opened 5 years ago

timstalli commented 5 years ago

Hey all, I am trying to use MongoDB as a datasource for Worldmap A MongoDB entry looks similar to this:

[{"Timestamp":"Tue, 30 Jul 2019 11:00:11","Long":-123.10476965861530,"lat":39.43163040647646}
{"Timestamp":"Tue, 30 Jul 2019 11:00:12","Long":-122.10476965861530,"lat":40.43163040647646}]

And some more entries over time. The Structure in the MongoDB is db.variablename where variablename is the macaddress of the computer that's sending the information. I want to display the position long lat in the worldmap with the label of the mac address. Is that possible? If yes, how? Thank you very much! This repo helped me a lot!