Visualize Your Userbase With a Heatmap Generator in Azure
Creating a heatmap app on Azure to visualize where in the world your users with the most errors are located.
Join the DZone community and get the full member experience.Join For Free
recently, together with my co-worker breck , we were looking at the error logs. one of our ideas—in order to investigate errors that were hard to diagnose—was to check in which parts of the world users who get errors are located. the assumption was that people from, e.g., new zealand, might have slow connection issues (timeouts) more often than people from the usa or europe. i couldn’t find any tool that does that, so i put a simple website at ipheatmap.azurewebsites.net . the main page use geoip-lite node library to geolocate ip address. for cross-check, you go to ipheatmap.azurewebsites.net/ipinfo.html , and the ip will be located using ipinfo.io api.
creating the website and setting up deployment from github took me less than 5 minutes on azure. i didn’t have to do any special configuration to get it working. i didn’t even have to leave the azure portal to lookup the github url, because it fetches all available repos automatically after you provide your credentials. even better: repos are sorted by creation date—thus the recently created repo (one that you would choose most likely) is on top of the list.
source code is available on github: https://github.com/jj09/ip-heatmap-generator .
Published at DZone with permission of Jacob Jedryszek, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.