I have 2 web apps in Azure, one for UAT and another for Production. Both have Application Insights telemetry installed and active on them for performance monitoring.
I currently am receiving the Weekly Application insights digest email, which summarizes the telemetry for the week, as expected. However both environments are included in the one email.
I do require to switch off this feature for the UAT web app. I have already disabled all alerts.
I have read the following post, Disable digest email in Application insights, but this is a request to unsubscribe from the email and not to disable for an environment.
Disabled Alerts
I'm afraid it's not possible to explicitly disable AI(likewise it's not possible to disable storage account/event hub and so on).
If this is not a case you can stop sending the data to your AI instance, but still I'm not sure whether this is going to help you(by stop sending the data I mean - disable whole telemetry I avoid initializing it from your code).
Unfortunately for now there is no way to selectively unsubscribe digest emails per application. We are planning to come up with a solution, but we cannot put a date on it yet.
Thanks,
Related
I have deployed two Azure web apps containing web jobs that perform sending of emails. It's the same code deployed with minor web.config changes and pointing to different dbs with the same structure. They use the same SMTP channel (smtp.office365.com, port 587), and server A is on a higher spec and takes 6 seconds to send an email, and server B is on a lower spec and sends an email in under a second. Both are located in South Africa North. The performance measurement is strictly around the sending of the email, so it can't be a db issue.
Both servers are operating well and I can't see any obvious performance issues. The times taken to send emails are consistently around the same speed throughout the day.
Where should I look to resolve this difference?
You can follow troubleshooting steps to understand the web apps slow performance:
Yes, it may not be a db issue.
Recheck those minor web.config changes that is pointed to different dbs.
Troubleshoot for less performance on the web apps.
Like some of the steps are Service Health checks, Monitor Azure WebJobs, Metrics.
Any program code or database queries are in-efficient.
You can enable application diagnostics and use the Application Insights Profiler.
Use AutoHeal, as it recycles the WP (worker process) on configuration modifications and to execute the request on the given time. And you can restart the web app from portal, if you need this by automatically then you can make use of this AutoHeal.
To automate this on your web app you need to add triggers in the web.config file in the root.
Hope there is no link between sending emails with the help of database, means you are not getting the data from db then sending the emails.
I have an application installed on a VM that publishes a page via OData.
I need to be able to trigger a high urgency alert based on one specific value published by the page.
I am little aware of Application Insights to monitor applications in Azure. But I am not sure if there is a way to read the data from the API and trigger an alert.
What options do I have to accomplish this in Azure?
Pls allow me to share my idea here.
creating app insights alert
enable app insights for azure vm
First, adding app insights to your application can made AI to capture your requests, dependencies, logs and some other messages, including calling API.
In my thoughts, I can log the response message of the API and set alert for some specific keywords. I created an azure function, and it will call MS graph API when triggered, and log the response. This function has integrated AI, so I created an alert by kql:
traces
| where timestamp > ago(30m) and message contains "xxx"
and set alert rule based on number of results greater than 0. When the alert was triggered, it will send email to my mailbox to mention me.
This means any time my API returned the response contains specific words, I will receive an email about it.
I have a UWP app published to store and is being used by customers. I have hooked application insights for the app which were useful sometime back.
I wanted to disable azure telemetry logging. For this, I have updated the build with a few code changes. But there are machines that are still running on our old builds.
So in that case is there a way to disable applications insights from logging any further, so that I don't have to delete the insights completely.
Thanks in advance
If you don't want to change your code, and the instrumentation key is directly used in the code, I don't think there're any ways to disable the telemetry for a uwp application.
But you can reduce the telemetry data by using Ingestion sampling. You can set the Data sampling value to 1%, so most of the data will be filtered out.
One more suggestion is that, next time, you can put the instrumentation key in a config file. In this case, if you don't want to send the data, just replace it with a false key.
I looked for this online and to my suprise I didn't find any relevant information.
We recently had a serious crash because one of Azure services had some breaking changes. This information was published on the service website and also I think shown as warning on Azure portal. The problem is that nobody checks the website if it's not needed and warnings can be overlooked.
I wonder if there is a mailing list or some other way to get emails only in case where there are some planned changes with serious impact on the services?
Regards
On this page https://learn.microsoft.com/en-us/azure/active-directory/fundamentals/whats-new it says:
"Get notified about when to revisit this page for updates by copying and pasting this URL: https://learn.microsoft.com/api/search/rss?search=%22Release+notes+-+Azure+Active+Directory%22&locale=en-us into your RSS feed reader icon feed reader."
I didn't find anything about an email list, but I did find this tool that takes an rss feed and emails you.
https://blogtrottr.com/
Ok so this is what I was able to find.
The best way to get notifications about potential breaking changes is to use Azure Service health available in Azure Portal - link
Here we can see planned certificate changes, some services being updated etc.
We can also configure for this to have notfications in Health Alerts section
I am working on Azure web API which uses Log4Net Application Insight appender to track traces. We are planning to use the Application Insight SDK directly (TrackTrace(), TrackEvent()) in order to use built-in alerting features.
However it does seem like, Azure is not supporting trace or event alerts but only metric alerts. So we got some issue there.
If I go one step back, web API is invoked by number of Logic Apps runs in x time intervals. Logic App simply calls web API (business logic is here) and it log all information/managed exceptions.
The main requirement is to be proactive when an exception happens like sending a mail to technical inbox. Secondary requirement is notify sources, if it got any data issues.
Any suggestion on our approach please, what we can do more to fulfill our requirements?
Please refer to this App Insights Exception Alerts. It is possible to set alerts for rates of exceptions in a defined time period.
Set up Exception alerts
You can also invoke webhooks to perform additional actions when the alert is fired.
Thanks Sreejit for your suggestion.
To conclude the answer, what's the preferred engine to process alerts please, through application insight or log analytics?
application insight only support metric alerts only, so the application exceptions need to be flagged as custom metrics as opposed to traces.
[TelemetryClient --> TrackTrace() vs TrackMetric()]
If we go for log analytics, we can use custom events. Then use alert management solution in OMS workspace. Perhaps even use of a separate logic app to built the logic of sending alerts.
[TelemetryClient --> TrackEvent()]