in this video I'm gonna show you how to add a wordpress site to Azure application
insights
hello I'm Travis and this is Ciraltos in this video I'm gonna demonstrate how
to set up as Azure application Insights and add a wordpress site for data
collection before that please take a second to like and subscribe if you're
enjoying these videos I can also be found on Twitter where I post breaking
your news daily now that that's out of the way let's get started I have a lot
of videos on log analytics I'll add a link to the playlist someplace up here
I've been wanting to dig into is your application insights for quite a while
but not being a developer I had some problems coming up with sites to collect
data on that was until I discovered there was a wordpress plugin for
application insights I thought hey I have a wordpress blog maybe I can
connect that to application insights so that's where today's journey starts
actually it started a few days ago when I was testing all this stuff out but you
know the camera wasn't rolling there are several ways to get data into
application insights we're gonna use the wordpress plugin in this example there's
also an agent that can be installed on servers code can be added to the
application during development or it can be enable multiple Azure services like
app service web hosting for example there is a downside to using the plugin
the plugin only accesses the WordPress site so server performance data
information is not available it still provides some pretty useful information
though okay let's get started with the demo I'm gonna start by creating an
application inside workspace the first five gigs of data going into application
insight is free at least for the east us check your region information to verify
that's the same five gigs is a lot of data especially for a small WordPress
site like mine alright Here I am in your I'm going to first create an application
insight workspace and then add the WordPress plug-in to my wordpress blog
so let's start by going to create a new resource and I'm going to add
application insights
there it is and then I'll click create okay so for this I'm just going to enter
in something simple now for the application type I'm going to select
general I've got the pay-as-you-go subscription I'm gonna create a new
resource group and I'm gonna select East US as the location and I'll click create
now if I go into my application insights we'll give it a second to finish in the
deployment and there it is in the overview section of application insights
there's going to be something called an instrumentation key you'll need to copy
that key and we'll need it for later use for the next step we're gonna go into
the admin page of your WordPress site I'm gonna show you two screen grabs for
my Ciraltos blog so I can hide out some of the information I don't want to post
on youtube I was gonna set up a temp WordPress site just for this
demonstration but it's so easy to add application insights to WordPress I
didn't see a need for it if you want to give this a try but you don't want to
use it in production site or you don't have a production site it's really easy
to set up a free wordpress site in Azure if setting up a free wordpress blog
in Azure is something you're interested in let me know in the
comments below if I see a couple people interested I'll demo that in my next
video just put free wordpress if you're into the whole brevity thing okay so
here we are in WordPress and you can see I'm going to add a plug-in and once
that's added I'll enable it and we go into the settings and you simply put
that key we copied in the previous step right in and that's all there is to it
alright back to the regularly scheduled demo so I'm gonna actually use my Ciraltos
app insights page for this demo just to show you some of the data we can
get I have data collected on that so it's a little bit more relevant than the
test we just set up the first thing I'm gonna do is change this to let's say 12
hours I need to get a little more bit more data off from this so here right
away you can see I've got some pretty interesting information I don't intend
this to be a comprehensive overview of application insights I'm probably not
qualified to do that because I'm pretty new to this but I will show you a few
interesting points to look at that should help get started and you can
explore further or keep tuned to my channel and I may have more things
coming okay so let's drill into the failed
requests and you can see it over here in this pane he goes to the failures and
I'm gonna go into this down here into
all operations and let's like this that's showing us what the 404's are
and if you look here we can see that we're getting a lot of 404's looking
for this Apple touch icon I did a search on this and I found that that is some
Apple devices that are looking for an icon and it's not there so that's why
I'm seeing that error so right away I can get rid of a lot of 404 errors on my
site just by adding that little PNG icon file okay let's go back so if we go into
server response time we can get some performance data I can change this from
server to browser and we can start to see the duration on different
directories or web pages on my site I'm gonna go back into server requests here
we can see a list of all the server requests we can highlight sections if we
want to and browser let's go to unique users and we're gonna view more insights
if I go down here I can see some pretty interesting information about what
operating systems are being used what browsers are being used here you can see
the countries by region - I get a lot of people from outside the US especially
people from India seem to subscribe to my youtube channel a lot I've added
closed captioning on my YouTube channel to help with any dialect issues
hopefully that helps everybody enjoy those videos even if English isn't your
primary language thanks again if you did subscribe okay
I'm gonna go back and show one other thing if we go to availability you can
see there's no data that's because I have not set up in a test yet so I'm
gonna add a test you can set up a simple ping test from up to 16 locations and a
multi-step test using Visual Studio IDE performance tests ping test is free and
the multi step is $10 a month per test that's east us the alerts you generate
are not free however so check with basic pricing on that so here we're gonna
create the test and we're gonna ping a URL we'll just do my basic website
and I'm gonna leave everything pretty much as is five locations look at the
success and we'll hit create no I can't give you any performance data on this
unless I come back but you get the point after a couple hours we should be able
to see availability test and if that site is down we should get a
notification on that so that's it for the demo applications insights is a full
feature monitoring and analytics tool using the WordPress plug-in makes
integration really easy but there are some limits due to not being able to
monitor the underlying server statistics such as CPU and disk and database
information there are some similarities to like Google Analytics but Google
Analytics seems more traffic and user focused while application insight seems
to be more of a performance and application monitoring I'll continue to
use both but I'll turn to application insights for performance and
troubleshooting information thanks for watching if you found this helpful or
interesting please subscribe like comment if you're feeling social hit the
bell icon so you can know when new videos are posted thanks again