azure-application-insights

Azure Application Insights for Service Fabric

余生长醉 提交于 2019-12-10 11:31:30
问题 I have multiple services running on Service Fabric. I would like to add Application Insight for logging. I'm just wondering whether I have to add an Application Insight resource for each microservice or only one is common for all. What is the best practice? 回答1: There is no such thing a the best practice for this. It really depends. Some considerations: Pricing: depending on the level (basic or enterprise) you will get an amount of data for free / included in the base price. See the docs. So

Azure Application Insights: How to format dates (and numbers)

偶尔善良 提交于 2019-12-10 10:59:52
问题 I'm in need of formatting an aggregated date in such a way that it produces an readable and sortable format. I am creating a time series that aggregates the number of requests over a period of days using the following code: let us_date = (t:datetime) { strcat( getmonth(t - 8h), "-", dayofmonth(t - 8h)) }; requests | project timestamp, client_IP, local_date = us_date(timestamp) | where timestamp >= now() - 30d and timestamp <= now() + 1d | summarize uniqueUsers = dcount(client_IP) by usdate =

Programmatically Query Azure Application Insights Analytics

为君一笑 提交于 2019-12-10 10:31:56
问题 With respect to the article found here, is there any method to programmatically query using .NET the application insights analytics and download the results. Like say in my C# application. application_insight_analytics.connect(ApplicationInsightsConnectionString) application_insight_analytics.query(query).toList(); 回答1: Full Application Insights API is available, details are here: https://dev.applicationinsights.io/ 来源: https://stackoverflow.com/questions/37836090/programmatically-query-azure

How do I use Microsoft Application Insights with NLog (Target cannot be found: 'ApplicationInsights')

社会主义新天地 提交于 2019-12-10 02:56:13
问题 I am using Microsoft Application Insights for my Web Application. I used the Application Insights TraceListener NuGet package for logging. That worked perfectly. Now I would like to switch to NLog. I added the Microsoft.ApplicationInsights.NLogTarget NuGet package and added a new NLog target in my NLog configuration file: <target name='ai' xsi:type='ApplicationInsights' /> NLog throws an exception: Target cannot be found: 'ApplicationInsights' I also tried adding the assembly via extensions

Share AI key between between multiple web apps and services?

只愿长相守 提交于 2019-12-10 02:25:02
问题 We got an app suite that consist of multiple web apps, web api's and windows services. Today we have one instrumentation key per webapp / api / service, in addition one per environment. This gets a bit messy and we're thinking it would have been better to only one shared key per environment. Are there other ways to aggregate and visulize the AI data from multiple keys, or should be move all our keys into one shared? Regards Larsi 回答1: In general, there are several considerations. To

Missing 'Add Application Insights Telemetry to Project' option in VS 2013

核能气质少年 提交于 2019-12-10 00:56:33
问题 I have an existing Web Project. I clicked "Add Application Insights Telemetry to Project" and at one point in the process it threw an error like '[...] failed to initialize the powershell host [...]' . Then I tried a few things according to Google searches. There is no ApplicationInsights.config in the project, nor is the Microsoft.ApplicationInsights.Telemetry.Services referenced. Now there is no 'Add Application Insights Telemetry to Project' option to be found anywhere. I even tried to re

How can I retrieve the instrumentation key for an Application Insights instance in an Azure Resource Group Template?

老子叫甜甜 提交于 2019-12-10 00:44:46
问题 Is there any way to retrieve the Instrumentation Key for an Application Insights instance in an Azure Resource Group template ? I've tried the instructions here to retrieve the list of list* operations available on Azure resources, but Microsoft.Insights/components doesn't appear in the list anywhere. It's making me think that retrieving an Instrumentation Key in the template isn't currently possible 回答1: After some digging and experimenting, this is what I found works: "outputs": {

ApplicationInsight causing website to hang at startup

你说的曾经没有我的故事 提交于 2019-12-08 17:30:12
问题 Is anyone using ApplicationInsight successfully at the moment? I have had nothing but trouble trying to get it to work. Firstly I had lots of problems with VS refusing to create a new website with ApplicationInsight and with adding ApplicationInsight to an existing website. The errors it gave where next to useless. I finally managed to get a new website with AI working on my machine (after waiting 'some time', which was the official answer to the initial problem from Microsoft). However this

How to Ignore localhost on Azure application insights

亡梦爱人 提交于 2019-12-08 17:07:24
问题 I started hosting my first production application recently. I went ahead and activated application insights, which I think have a lot of value. However, I'm getting stats which come from the developer side, for example logs are recording entries from localhost:xxxx. I'm sure there is a way to turn this off. Can anyone give me some pointers please? 回答1: You can also filter localhost telemetry using TelemetryProcessor (if you are using the latest (prerelease version of Application Insights Web

JavaScript Azure Function stacktrace has none of my code in it

做~自己de王妃 提交于 2019-12-08 11:42:34
问题 I have a simple Azure Function where I'm throwing an exception. it's one line consisting of throw new Error('Oh no... we hit an edge case') Curiously, my stacktrace is just some .NET stacktrace Microsoft.Azure.WebJobs.Host.FunctionInvocationException: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e) at Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor+<ExecuteWithLoggingAsync>d__17