azure-performancecounters

Azure App service - User has insufficient permissions to collect Windows Performance Counters

白昼怎懂夜的黑 提交于 2020-01-25 07:53:06
问题 We have hosted a .Net application as an Azure App Service. I am trying to install an APM called New Relic. I am stuck at this error. The executing user, IIS APPPOOL\XXX, has insufficient permissions to collect Windows Performance Counters. I understand how this can be handled in a VM with access to IIS Application insight monitor doesn't send data to portal due to insufficient permission I also didn't find any setting via Azure KUDU console. However, I am trying to find how to setup "Users

Azure - How can I read cpu and memory of my web app?

*爱你&永不变心* 提交于 2019-12-13 10:57:28
问题 I'm trying to read the CPU and Memory usage for my app using PerformanceCounters . code: PerformanceCounter cpuCounter; cpuCounter = new PerformanceCounter(); cpuCounter.CategoryName = "Processor"; cpuCounter.CounterName = "% Processor Time"; cpuCounter.InstanceName = "_Total"; var result = cpuCounter.NextValue();//ERROR HERE I'm getting a Unauthorized exception. How can I work around this? Edit 1: I tried to set the current instance name for both the processor count and the memory without

SQL “Log Bytes Flushed/sec” counter from powershell Error

你离开我真会死。 提交于 2019-12-12 03:36:18
问题 I am trying to calculate the type of AZURE SQL I need using this: http://dtucalculator.azurewebsites.net/ => http://dtucalculator.azurewebsites.net/Downloads/sql-perfmon.zip This is a PowerShell script that gets data from some counters from SQL but it errors out when accessing the "Log Bytes Flushed/sec" counter that it is pressent in SQL when I run select * FROM sys.dm_os_performance_counters where counter_name like 'Log Bytes Flushed/sec%' the error I get from PowerShell is: Get-Counter :