azure-application-insights

Azure Key Vault secret access intermittently failing to connect with socket exception

回眸只為那壹抹淺笑 提交于 2021-01-27 06:07:39
问题 I have an MVC 5 web application running on .NET 4.7.2 and hosted in an Azure AppService, that uses Azure Key Vault to hold secrets. The project uses the Microsoft.Azure.KeyVault 3.0.3 NuGet package and the secrets are accessed using the KeyVaultClient and .GetSecretAsync() . All resources are located in the same Azure region. For the most part this works very well, and for about 90% of the time it returns the secret in milliseconds. But every now and then the call to access the Key Vault

Azure Key Vault secret access intermittently failing to connect with socket exception

假如想象 提交于 2021-01-27 06:06:40
问题 I have an MVC 5 web application running on .NET 4.7.2 and hosted in an Azure AppService, that uses Azure Key Vault to hold secrets. The project uses the Microsoft.Azure.KeyVault 3.0.3 NuGet package and the secrets are accessed using the KeyVaultClient and .GetSecretAsync() . All resources are located in the same Azure region. For the most part this works very well, and for about 90% of the time it returns the secret in milliseconds. But every now and then the call to access the Key Vault

Azure Key Vault secret access intermittently failing to connect with socket exception

▼魔方 西西 提交于 2021-01-27 06:06:22
问题 I have an MVC 5 web application running on .NET 4.7.2 and hosted in an Azure AppService, that uses Azure Key Vault to hold secrets. The project uses the Microsoft.Azure.KeyVault 3.0.3 NuGet package and the secrets are accessed using the KeyVaultClient and .GetSecretAsync() . All resources are located in the same Azure region. For the most part this works very well, and for about 90% of the time it returns the secret in milliseconds. But every now and then the call to access the Key Vault

Azure alert only fired once

旧城冷巷雨未停 提交于 2021-01-27 05:47:42
问题 I have implemented an Azure alert that should fire when a Application Insights metric is greater than zero. The metric is the number of items in a Azure poison queue. The metric is calculated by a Azure Function described in this article: https://www.scaling-to-the-sky.com/2018/03/08/poison-queue-monitoring-with-azure-functions/?unapproved=160&moderation-hash=072116753136d2008f5e63a856d8e4b0#comment-160. The alert has only fired once despite the condition being met on several occasions. I don

Azure alert only fired once

左心房为你撑大大i 提交于 2021-01-27 05:47:07
问题 I have implemented an Azure alert that should fire when a Application Insights metric is greater than zero. The metric is the number of items in a Azure poison queue. The metric is calculated by a Azure Function described in this article: https://www.scaling-to-the-sky.com/2018/03/08/poison-queue-monitoring-with-azure-functions/?unapproved=160&moderation-hash=072116753136d2008f5e63a856d8e4b0#comment-160. The alert has only fired once despite the condition being met on several occasions. I don

Azure Application Insights Query - How to calculate percentage of total

ε祈祈猫儿з 提交于 2021-01-27 04:28:09
问题 I'm trying to create a row in an output table that would calculate percentage of total items: Something like this: ITEM | COUNT | PERCENTAGE item 1 | 4 | 80 item 2 | 1 | 20 I can easily get a table with rows of ITEM and COUNT, but I can't figure out how to get total (5 in this case) as a number so I can calculate percentage in column %. someTable | where name == "Some Name" | summarize COUNT = count() by ITEM = tostring( customDimensions.["SomePar"]) | project ITEM, COUNT, PERCENTAGE = (C/?)

How to evaluate Application Insights requests “own” duration, without considering duration of dependencies?

有些话、适合烂在心里 提交于 2021-01-23 06:51:05
问题 I'm trying to produce a Kusto query to measure the "own" duration of the requests (subtracting out durations of dependencies). However, I can't really figure out how to work this out through a pure Kusto query. To better understand what would would expected, below a sample case: High level view (where R is the request and Dx the dependencies) R =============================== (31ms) D1 ******* (7ms) D2 ******** (8ms) D3 ****** (6ms) D4 ** (2ms) D5 **** (4ms) Proj ==*************======******==

Azure Cli How to enable Application Insights for webapp

被刻印的时光 ゝ 提交于 2021-01-23 06:30:50
问题 Consider the following code. It creates an application insight, then it retrieves the instrumentationkey and assigns it to my webapp. az monitor app-insights component create -g $resourceGroup --app $webapp --application-type web --kind web --tags $defaultTags $instrumentationKey = az monitor app-insights component show -g $resourceGroup -a $webapp --query 'instrumentationKey' -o tsv az webapp config appsettings set -g $resourceGroup -n $webapp --settings APPINSIGHTS_INSTRUMENTATIONKEY=

Application Insights - Undefined Cloud Role Name with 2.4.0-beta3

孤街醉人 提交于 2021-01-21 09:52:48
问题 We're trying out the app insights multi role preview as announced here: https://azure.microsoft.com/en-us/blog/app-insights-microservices/ https://docs.microsoft.com/en-us/azure/application-insights/app-insights-monitor-multi-role-apps#use-cloudrolename-to-separate-components We've added the 2.4.0-beta3 packages for appinsights & appinsights.windowsserver as the app we're using is hosted on prem (IIS) currently. Our cloud_rolename seems to be undefined in our request telemetry. Is there

Application Insights - Undefined Cloud Role Name with 2.4.0-beta3

风流意气都作罢 提交于 2021-01-21 09:51:24
问题 We're trying out the app insights multi role preview as announced here: https://azure.microsoft.com/en-us/blog/app-insights-microservices/ https://docs.microsoft.com/en-us/azure/application-insights/app-insights-monitor-multi-role-apps#use-cloudrolename-to-separate-components We've added the 2.4.0-beta3 packages for appinsights & appinsights.windowsserver as the app we're using is hosted on prem (IIS) currently. Our cloud_rolename seems to be undefined in our request telemetry. Is there