I know Application insights can use to monitor the Web applications on azure platform. We just need to setup the Instrumentation id and account id.
But my requirement is to send the simulated data to Azure Application insights directly and show the graphs on dashboard. Is there any way to do this.
Java sdk to send the simulated data onto Application insights.
https://github.com/Microsoft/ApplicationInsights-Java/tree/master/samples/src/main/java/com/microsoft/applicationinsights/sample
Related
Hello I hope you can help me.
I have a azure webapp that is basically an api programmed in dotnet core, this is connected to an azure application insights, where we monitor the api, the problem I have is that only one person on the team has access to these two resources(webapp and app insights), basically the permission for all rest of the team is a bureaucratic management that does not end resolving.
I need the data stored in the application insights to be replicated in another insights application in a new azure subscription that we already created where all team members have access.
What can I do to solve this problem?
I've implemented Azure Mobile App Service which uses Azure Mobile Apps .NET Server, connected it to the Notification Hub and it works.
However according to application insights my slowest calls are actually client registrations, for example:
PUT /push/installations/{installationId}
My app is deployed on azure under different resource group than notification hub. Can this be the cause?
Resource Group is just a container that holds the related Azure resources, and it would stores metadata about the resources, so the location for a resource group determines the data center for storing the metadata of the resources. Details you could follow here.
PUT /push/installations/{installationId}
This is the build-in endpoint for the mobile client to create / update the registration with the installation model. The server side code would be similar to the PutInstallation method under NotificationInstallationsController.cs.
As you commented that the data center for hosting your Notification Hub is North Europe. You need to check the location of your App Service plan for running your mobile app. Details about Azure App Service plan, you could follow here.
I would recommend you scale up your app service plan to a higher tier to check this issue. Also, you could try to make your Notification Hub and Mobile App under the same data center to narrow this issue. Additionally, you could provide the detailed comparison between the requests trace logging in your application insights for us to troubleshoot this issue.
I am trying to execute the REST API to get the usage metrics data from Web Application deployed on Azure.
Hi,
I am trying to execute the REST API to get the usage metrics data from Web Application deployed on Azure.
https://management.azure.com/subscriptions//resourceGroups//providers/Microsoft.Web/sites//metrics?$filter=startTime%20eq%202016-04-12T06:05:42.907Z%20and%20endTime%20eq%202016-04-12T06:10:42.907Z&api-version=2014-04-01
But I am getting constantly 500 Internal Server Error.
Also, I tried to find out the given URL in Resource Explorer under the Mincrosoft.Web But in that I can see the metricsDefinitions but metrics is not available for this.
Can someone please let me know what how can I get the usage metrics data for the Web Application Services?
You can retrieve resource metrics via the Azure Insights API.By using the Azure Insights API it is possible to programmatically retrieve the available default metric definitions (the type of metric such as CPU Time, Requests, etc.), granularity, and metric values.
https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider-namespace}/{resource-type}/{resource-name}/metrics?api-version=2014-04-01&$filter={filter}
It seems the REST API URI you are using is right, but before that the first step is to authenticate the Azure Insights API request. The easiest way to set up authentication is by creating an Azure AD service principal and retrieve the authentication token.
A very detailed walkthrough at https://blogs.msdn.microsoft.com/cloud_solution_architect/2016/02/23/retrieving-resource-metrics-via-the-azure-insights-api/.
We have a need to monitor the azure Web App's resource usage in relation to the number of users logged into the application.
What is the best way to get information about the running azure environment (processor and memory) usage of the Azure WebApp for an ASP.NET application.
You can try to setup Application Insights in your application. Once done you should be able to get telemetry data with their API
(https://msdn.microsoft.com/en-us/library/azure/dn931943.aspx?f=255&MSPPError=-2147217396)
I have an application running on the Azure cloud.
Currently this is deployed as an Azure web app.
Is there any way to monitor the website status and build a page like this or this?
As you can see in those examples both have:
a service global status
An historical status which is grouped in hour/day/months period
Does azure has an API that I can use to monitor my services?
Application Insights and the Azure portal will give you a rich monitoring and diagnostics experience for your web app. It is in preview at this time.
You can get very granular data points or high-level graphs and trends. The historical data can go back as far as 13 months for aggregated data points. You can read more about the data retention policy here.
The Azure portal (the new one at portal.azure.com) gives you a rich UI to interact with the telemetry data from your app. And if you want to customize a blade to view specific data for your app you can do that too.
Azure Web Apps also has built-in monitoring support that you can use. It won't give you the depth that Application Insights does but you should look at this too to see if it will give you the data you need. And of course, you can customize the monitoring blades in the Azure portal to suit your needs.
Azure does offer a robust RESTFul API for managing and monitoring your services. Essentially anything you can do through the Azure Management Portal is accessible via an API, including analytics. The portal itself often uses this same API.
https://msdn.microsoft.com/en-us/library/azure/ee460799.aspx
You can also use MSFT authored .NET assemblies to create your own monitoring applications in Visual Studio. I find the monitoring and analytics features more robust via this model. These are available on GitHub:
http://azure.microsoft.com/en-us/updates/management-libraries-for-net-release-announcement/