Application Insights makes automatic ip lookup for your telemetry. Geo information can be quite useful for monitoring, troubleshooting and usage scenarios.
I already wrote about IP address collection. Application Insights collects an IP address of the monitored service visitor. So you can group telemetry by the country of origin. This will allow to filter out long executing AJAX calls made from the countries with high latency or group usage metrics by “nighttime” visitors vs. “daytime” visitors.
For instance, this query demonstrates that not all availability tests locations geo mapped correctly by Application Insights.
1 2 3 4 5 6 7 8 9
This is a resultgin view. Note, some locations were not correctly mapped and some do not have city associated with it:
|US : CA-San Jose||United States California San Jose||188.8.131.52|
|US : FL-Miami||United States Florida Miami||184.108.40.206|
|US : TX-San Antonio||United States Texas San Antonio||220.127.116.11|
|NL : Amsterdam||Netherlands North Holland Amsterdam||18.104.22.168|
|US : IL-Chicago||United States Illinois Chicago||22.214.171.124|
|IE : Dublin||Ireland Leinster Dublin||126.96.36.199|
|JP : Kawaguchi||Japan Tokyo Tokyo||188.8.131.52|
|RU : Moscow||United Kingdom||184.108.40.206|
|CH : Zurich||United Kingdom||220.127.116.11|
|HK : Hong Kong||Hong Kong Long Keng||18.104.22.168|
|AU : Sydney||United States Washington Redmond||22.214.171.124|
|BR : Sao Paulo||Brazil Sao Paulo São Paulo||126.96.36.199|
|SE : Stockholm||United Kingdom||188.8.131.52|
|SG : Singapore||United States Delaware Wilmington||184.108.40.206|
|US : VA-Ashburn||United States||220.127.116.11|
|FR : Paris||United Kingdom||18.104.22.168|
Try this query yourself for an up to date information.
I authored a simple query to check whether my blog is read during the day or night. This demo is not produciton ready and I might have messed with the timezones. However for an adhoc analysis it was OK. It also demonstrates the use of the operators
datatable and the power of
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
Here is the result view: