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
1,005 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
1,547 views
0 votes
1 answer
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 27, 2018 in Azure by null_void
• 3,220 points
1,195 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 Prerna
• 1,960 points
2,654 views
0 votes
1 answer
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
• 58,020 points
871 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,250 points
2,276 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

edited Oct 7, 2021 by Sarfaraz 1,953 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
23,264 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP