Is it possible to access performance counter in Microsoft Azure Web App?

0 votes

I wish to access CPU, RAM and ASP.NET requests performance counter from web app via some API. Is this possible? If so, how? When I call it using System.Diagnostics.PerformanceCounter.NextValue method I get exception:

Access to the registry key 'Global' is denied. 

I have seen examples with Web Roles, but nothing about websites.

Jul 4, 2019 in Azure by sabby
• 4,370 points
143 views

1 answer to this question.

0 votes

No, it is not supported on Azure Websites.

You can however monitor the CPU usuage and Memory Working set using the Monitor tab in the old management portal or directly on the website "blade" using the new portal. Maybe you can get these data out programatically using Microsoft.WindowsAzure.Management.WebSites

answered Jul 4, 2019 by Perry
• 17,100 points

Related Questions In Azure

0 votes
1 answer

Is it possible to write to file system on Azure Website?

Yes you can. It is possible to ...READ MORE

answered Jun 27, 2018 in Azure by null_void
• 3,220 points
135 views
0 votes
1 answer
0 votes
1 answer

Is there a logical difference between WebApp and API app in Azure?

Basically there was only minute differences between ...READ MORE

answered Apr 26, 2018 in Azure by null_void
• 3,220 points
254 views
0 votes
1 answer

How to add an App Settings to existing Azure Web Application using Azure Power Shell?

The example is for slot-specific settings, if ...READ MORE

answered Jun 13, 2018 in Azure by club_seesharp
• 3,450 points
478 views
0 votes
1 answer

How to add a body to a HttpWebRequest that is being used with the Azure Service management API?

The following code should help: byte[] buf = ...READ MORE

answered Apr 3, 2019 in Azure by p
• 1,960 points
178 views
0 votes
1 answer

Is it possible to reference a c# class library in an Azure Function visual studio project?

This is possible by using the new ...READ MORE

answered Apr 15, 2019 in Azure by p
• 1,960 points
1,046 views
0 votes
1 answer

How to have a server 2012 in cloud and my users in different location

You will access the server the same ...READ MORE

answered Sep 25, 2018 in AWS by Priyaj
• 57,700 points
79 views
0 votes
1 answer

TCP in Azure IoT Hub

The default Protocol Gateway samples are indeed ...READ MORE

answered Oct 11, 2018 in IoT (Internet of Things) by DataKing99
• 8,210 points
955 views
0 votes
1 answer

How to create a sub-container in Azure?

You can create a container named "content" and ...READ MORE

answered Jun 28, 2019 in Azure by Perry
• 17,100 points
484 views
0 votes
2 answers

I am getting "Insufficient Privileges" error when trying to access Azure Graph APIs.

I had the same issue before, and ...READ MORE

answered Sep 17, 2019 in Azure by Ju Cheh
7,186 views