问题
I have an existing web application on Azure with some very limited application insights monitoring (end point checks). I thought I would pull in the rest of the functionality so I added telemetry to my project following the instructions at http://azure.microsoft.com/en-us/documentation/articles/app-insights-start-monitoring-app-health-usage/. Everything went well and I was able to see that when I loaded a page with the instrumentation JavaScript it was indeed sending requests to azure and I was getting back no errors either in error code or in the errors array in the json response.
The GUID in the applications insights configuration file looks correct. I've also tried sending telemetry manually
private void GatherTelemetry()
{
var telemetry = new TelemetryClient();
telemetry.TrackEvent("FeedPageLoaded");
}
While all of these actions show up in the count in visual studio
there is nothing in the portal.
I have tried reopening the blades as well as logging out and in again.
What else can I try?
回答1:
here are things to confirm:
if you are running your app from visual studio make sure there are events listed as sent from the output window (based on your screenshot above it looks good there)
make sure you are using our latest SDKs. .11 had some breaking changes see here: http://blogs.msdn.com/b/visualstudioalm/archive/2014/10/21/application-insights-sdk-0-11-0-prerelease.aspx
ensure the events are being sent to the AI endpoint in fiddler dc.services.visualstudio.com (looks like you are good here)
go to portal.azure.com and choose browse -> application insights and choose the app you are sending data for. you can double check by looking at the instrumentation key on the properties part. another way to get back to the portal is through the deep links made available in visual studio. on the overview blade go to the diagnostic search part to see a tail of the last telemetry events collected.
finally if you don't see data check for service issues here: http://azure.microsoft.com/en-us/status/
回答2:
I'm not 100% sure, but I believe that custom events aren't yet included in the charts you are looking at. Have you checked whether you can find the events using the search functionality?
回答3:
Custom events will soon be seen in the overview blade. In the mean time you can chart the trend of metric Event count. Just select any chart and open up Metric Explorer, then you can select the metric Event count. This should show you the trend of events sent.
来源:https://stackoverflow.com/questions/26808530/application-insights-not-showing-data-in-azure-preview-portal