none
Health monitoring for Web services RRS feed

  • Question

  • Hi there,

    Once the web service (can be WCF or Web API) deployed to production it is important to monitor and send alerts. 

    Is the AppFabric right solution? 

    Tracing and Logging in WCF or Web API couldn't help in n-Tier apps.

    Would appreciate help in any free or Microsoft tools that are part of frameworks.


    Apriori algorithm [association rule]

    Monday, February 4, 2013 2:26 PM

Answers

  • Thanks for responding.

    Above errors still exist on the server because AppFabric keeps track of all web applications on IIS.

    when there is a Web.config issue in one of the web apps on the server IIS throws above messages as copied in the screen shot.

    Now WCF RESTFul service has been successfully configured on AppFabric, all working as expected.

    Couple of issues which impacted the functionality are: 

    1. AppFabric Event collection service, which Collects events from an Event Tracing for Windows (ETW) session and writes them to a monitoring database trying to log in to database using identity Netowrkservice. Login failed for user 'NT AUTHORITY\LOCAL SERVICE'. Reason: Token-based server access validation failed with an infrastructure error. Check for previous errors. [CLIENT: <local machine>]

    Resolution: Identity updated to the account with right priveleges.

    2. The exception message is: A base address with the uri scheme 'net.pipe' needs to be specified if using service management endpoint 'ServiceManagementNetPipeEndpoint'. Verify a base address exists on the site and the protocol is enabled on the application.. 

    Resolution: This is resolved by simply adding the protocol 'net.pipe' to the virtual folder.

    Apriori algorithm [association rule]

    • Marked as answer by Raju Golla Tuesday, February 12, 2013 10:20 AM
    Tuesday, February 12, 2013 10:20 AM

All replies

  • Hi,

    If you mean configure your wcf service for health monitoring, please check a document below that walks you through the process of configuring a WCF service for health monitoring in order to instrument a custom event.

    #How to: Use Health Monitoring to Instrument a WCF Service for Security

    http://msdn.microsoft.com/en-us/library/ff649765.aspx

    And you can utilize wcf performance counters to gauge your application's performance.

    #WCF Performance Counters

    http://msdn.microsoft.com/en-us/library/ms735098.aspx

    Best Regards.


    Haixia
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Tuesday, February 5, 2013 6:24 AM
    Moderator
  • Thanks Haixia.

    I would like to use AppFabric to monitor and trouble shooting existing WCF services.

    Help is appreciated.


    Apriori algorithm [association rule]

    Thursday, February 7, 2013 10:25 AM
  • What version of IIS you are using to host your WCF service? For IIS 7.5 (not sure about IIS 7), you can download AppFebric setup from here

    Go to IIS 7.5’s AppFebric dash board to see the health of your wcf services as below. Clicking oon individual items (Completed/Errors/Hits) it will navigate to a new windows showing detailed information about the service call (no Of Hits/RequestTime/ResponseTime).

    Frankly speaking in Microsoft world there is no such robust tool specific to Service health monitoring area like in Java we have JaMon and JaRep that is the reason my organisation ended up with writing ourown Health Monitoring solution extending WCF Performance Counters.


    Lingaraj Mishra


    Thursday, February 7, 2013 1:27 PM
  • Thanks Lingaraj Mishra.

    AppFabric has been installed, configuring WCF REST service to monitor is not working as expected.

    WCF service deployment:


    1. A new web application is created on IIS.

    2) A folder with WCF service name is created on the server and published the WCF service from local machine to the folder on server through FTP transfer (Binaries in Bin folder and Web.conf) are deployed.

    3) REST Service working as expected

    4) Configuring AppFabric to monitor is NOT functioning as expected

    5) When the Errors occurred hyperlink below Applications and Services at top right corner selected exception message as shown in attached picture is shown.

    WCF service is shown as Application rather than service. I think this blog article can resolve the issue to deploy service as package.

    Help appreciated. 


    Apriori algorithm [association rule]

    Thursday, February 7, 2013 10:49 PM
  • Hi, what is the issue now?
    Tuesday, February 12, 2013 2:53 AM
  • Thanks for responding.

    Above errors still exist on the server because AppFabric keeps track of all web applications on IIS.

    when there is a Web.config issue in one of the web apps on the server IIS throws above messages as copied in the screen shot.

    Now WCF RESTFul service has been successfully configured on AppFabric, all working as expected.

    Couple of issues which impacted the functionality are: 

    1. AppFabric Event collection service, which Collects events from an Event Tracing for Windows (ETW) session and writes them to a monitoring database trying to log in to database using identity Netowrkservice. Login failed for user 'NT AUTHORITY\LOCAL SERVICE'. Reason: Token-based server access validation failed with an infrastructure error. Check for previous errors. [CLIENT: <local machine>]

    Resolution: Identity updated to the account with right priveleges.

    2. The exception message is: A base address with the uri scheme 'net.pipe' needs to be specified if using service management endpoint 'ServiceManagementNetPipeEndpoint'. Verify a base address exists on the site and the protocol is enabled on the application.. 

    Resolution: This is resolved by simply adding the protocol 'net.pipe' to the virtual folder.

    Apriori algorithm [association rule]

    • Marked as answer by Raju Golla Tuesday, February 12, 2013 10:20 AM
    Tuesday, February 12, 2013 10:20 AM