azure-application-insights

Application Insights Alert not firing for custom Metric

核能气质少年 提交于 2019-12-24 21:57:06
问题 I have set up ApplicationInsights in my js code and whenever I send data to it, it is tracked correctly and I can see it in the portal. I want now to set up an email notification when errors or some custom metric that I define occur. As you can see from the image below, I have set up 3 alerts. The first 2 (ServerErrors and BrowserErrors) work fine and I get email notifications. I have then set up the 3rd so that when I send a metric using this code var properties = { Date: new Date(), Text:

Create Azure alerts (not classic) by resource manager templates

自古美人都是妖i 提交于 2019-12-24 19:38:23
问题 I have created some of the new alerts through the portal UI and now need to deploy these by resource manager template, but I am unable to locate the JSON schema for this resource type. I can find the resource listing in the relevant resource group in the Resource Explorer website (looks like it must be the type microsoft.insights/scheduledqueryrules), but the JSON to create the resource does not exist. There is documentation for templating the classic alerts, but nothing for the new type. Is

Azure ARM: There is no target resource for this alert

…衆ロ難τιáo~ 提交于 2019-12-24 18:57:23
问题 I'm trying to tie microsoft.insights/alertrules to Microsoft.Web/sites during ARM deployment at azure. The error is: There is no target resource for this alert CPU default-app-name-plan-ins-westeurope-default-environment I created the resources in the template using 'automation script' of manually created resources as sample. The alertrule: { "type": "microsoft.insights/alertrules", "location": "[variables('location')]", "apiVersion": "2016-03-01", "name": "[concat('CPU ', variables(

Application insight request fails even though the code is working properly

安稳与你 提交于 2019-12-24 11:21:05
问题 I have an action method which is working as I expect. Here is the code: [HttpPost] [ValidateAntiForgeryToken] public ActionResult Edit([Bind(Include = "Id,Title,Content,Category,HeaderFilePath")] Blog blog, HttpPostedFileBase upload) { if (ModelState.IsValid) { if (upload != null && upload.ContentLength > 0) { if (blog.HeaderFilePath != string.Empty && blog.HeaderFilePath != null) { try { System.IO.File.Delete(HttpContext.Server.MapPath("~/") + "images/" + blog.HeaderFilePath); } catch

Azure Log Analytics Query with WHERE clause produces no results

元气小坏坏 提交于 2019-12-24 07:58:19
问题 I'm querying log entries in Azure Application Insights originating from AppCenter Diagnostics using Azure Log Analytics. In some log entries i use custom propertys. Now i'm trying to write a query to show values only with certain properties having a given value. My original query looks like this and produces the expected result: customEvents | where (timestamp >= datetime(2019-02-20T09:04:00.000Z) and timestamp <= datetime(2019-02-21T09:04:00.000Z)) | top 101 by timestamp desc | project

No log entries in Azure Application Insights using Microsoft.ApplicationInsights.NLogTarget

巧了我就是萌 提交于 2019-12-24 01:16:00
问题 Goal: Forward log entries from NLog to Azure Application Insights. Starting from: https://github.com/Microsoft/ApplicationInsights-dotnet-logging I created a very basic console application: TelemetryConfiguration.Active.InstrumentationKey = "my instrumentation key"; Logger logger = LogManager.GetLogger("Example"); logger.Info("Hello World"); Console.ReadLine(); With the following app.config: <configuration> <configSections> <section name="nlog" type="NLog.Config.ConfigSectionHandler, NLog" />

Log4Net and Application Insights-no data is coming through

◇◆丶佛笑我妖孽 提交于 2019-12-24 00:56:49
问题 I'm using Log4Net in my my C# console application and want the logged events to appear in Application Insights as well. I've added Application Insights as well as the Application Insights Log4Net Appender. I've followed the instructions here: https://jan-v.nl/post/using-application-insights-in-your-log4net-application with no luck. Log4Net is logging fine. However, when I go to the Application Insights dashboard, I see this: "THE APPLICATION HAS NO DATA IN APPLICATION INSIGHTS." At the

Application Insights disable GET requests every 5 min

拈花ヽ惹草 提交于 2019-12-23 19:13:11
问题 We have a problem with Application Insights. There are a lot of requests every 5 min to our App Service. All alerts are disabled. Does anyone know what this is and how to disable the logging for that requests? P.S. He think that this is ResourceHealth monitor, but how to disable it then? 回答1: You probably use the "Always On" feature within your application settings. Azure is invoking the root of your site every 5 minutes to keep your app warm. I doubt there is a way to disabling these

NLog exceptions as Trace in Application Insights

爱⌒轻易说出口 提交于 2019-12-23 13:27:21
问题 Hi I want to log exceptions to Application Insights using NLog. I integrated both my project and application insights. The real problem here is NLog has different logger types such as warn, info, error, debug, fatal. When I am trying to log using these in app insights I get all these exceptions as Trace errors. Please find in the below screen shot. I want them to be there name as per the severity. 回答1: The Trace Telemetry has a property called 'Severity', see also the docs so the severity is

Service Fabric and Application Insights

非 Y 不嫁゛ 提交于 2019-12-23 12:15:05
问题 I am new to service Fabric and trying to integrate my windows service application into service fabric. For logging information, we are planning to use Application Insights. But the events are not logged if i send it through my SF application. At the same time, through a normal console/windows application, I can able to log the message to applicationinsights and can be viewed from there. Then I tried to create a VM in azure environment, and create SF application there and send the log