Application insights, power BI : The best tools to monitor your Azure Website!

Hi everyone,

In this article, I will explain you how to manage, monitor and measure Your Website’s Performance using many technologies… For that purpose, I will share with you my experience and my feedback on the subject.

    Metrics of your website in Microsoft Azure
    My personal website (http://mvp-hjaiejchourouk.azurewebsites.net/) is hosted in Microsoft Azure so you can guess that the first way to manage and monitor your website is using the portal Microsoft Azure!

    Many new features are available in the portal of Microsoft Azure for monitoring Azure Websites. It enables you to consume telemetry in order to measure the performance and health of your website.
    Azure Monitor provides many methods to configure and consume these metrics for monitoring and troubleshooting.

    After creating your website, you have to open the Azure portal, go to the Overview blade of the website, You can view new metrics as a Monitoring tile. You can edit the tile and select more metrics.

  • Chart type : line
  • Char type: bar
  • Alerts:
    You can configure a metric alert rule that sends a notification or takes automated action (webhook) when the metric crosses the threshold that you have set.
    Autoscale is an automated action that enables you to scale out your website to meet incoming requests or loads on it.
    You can configure an Autoscale setting rule to scale in or out based on a metric crossing a threshold.

    Diagnose and solve problems :

    Application insights
    I just wrapped up connecting my website over here which is a WordPress site hosted at Microsoft Azure to Application Insights. I thought I’d share with you how it’s done in order to monitor it.
    Some of the features of application insights are:
    • Diagnose exceptions and web app performance issues
    • Perform root cause analysis with ad-hoc queries and full-text search
    • Monitor load and discover usage patterns
    • Monitor your web apps hosted on Azure

    From the Plugin Directory at WordPress.org you will find the Application Insights plugin: http://ramisays.com/application-insights-for-wordpress-sites/

    This Plugin basically integrates your WordPress website with Microsoft Application Insights. The plugin uses the Application Insights PHP SDK to send site data to Azure.

      This installation part is done in the following 3 steps:

    • Upload all files to the /wp-content/plugins/ directory
    • Activate the plugin through the ‘Plugins’ menu in WordPress
    • On your WordPress site, go to Settings -> Application Insights and enter the Instrumentation Key you received from http://portal.azure.com


    • Start monitoring the stats in the Azure portal!

      Application Insights gathers a huge amount of interesting statistics and data, some of which is similar to what tools like Google Analytics provide and some are even more granular and helpful to web developers.


      As you can see below , we can get all data about the visitors of your website :

      You can also have more data using the application insights analytics

      The result of the query TOP 10 countries by traffic :

      Power BI for Google analytics
      We can also use Power BI to track your site using the latest Google Analytics tracking code and allows you to view key stats and significant dashboards :





      Power BI Desktop + Google Analytics
      If you want create your own dashboard to track and monitor progress and performance of your database over time. , you can use power BI Desktop :
      You have to install the last version of the connector mySQL






      Monitoring is a very important functionality for developers which help them to monitor and track their Azure websites but you can also monitor all azure resources using Azure monitor… I invite you to discover this service in more details through this link.

No Comments Yet

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>