I am having the same issue w/ agent v10.5.2 SP2 (my APM infra is also the same).
When I go to http://GLDASxxxxx:XXXXX/iisperfstats on the browser of that same server, I get the following:
First I created C:\innetpug\APM_PPWebServer (who should creeate this folder? Me or the user that performs the following?)
I've gone through the process of going to IIS Manager and
- creating a new Virtual Dir called "IISPerfStats" under "Default Web Site"
- under that virtual directory, double clicking "Default Document"
- creating "iis-stats.html"
- under that virtual directory, double clicking "Authentication" icon
- "enabling" Anonymous Authentication
This is supposed to create "iis-stats.html" file under C:\inetpub\APM_PPWebServer but it never did.
My config looked like this (masking IP & port for security reasons):
<WebServer Type="Microsoft-IIS" Enabled="true" ServerURL="http://10.xx.xx.xx:XXXXX" DisplayName="LifecycleOne_Proxy-Staging" MetricsURL="iisperfstats"/>
My logs show the following:
9/21/18 03:49:22 PM CDT [ERROR] [WebServerMonitor] Could not get performance metrics from server : http://10.xx.xx.xx:XXXXX/iisperfstats
9/21/18 03:49:23 PM CDT [INFO] [WebServerMonitor] Loading web server configuration file...
then I change the config to (used hostname instead of IP):
<WebServer Type="Microsoft-IIS" Enabled="true" ServerURL="http://GLDASxxxxx:XXXXX" DisplayName="LifecycleOne_Proxy-Staging" MetricsURL="iisperfstats"/>
then my logs show the following:
9/21/18 03:55:23 PM CDT [WARN] [WebServerMonitor] RefreshFrequencyInSeconds is either not available or empty for http://GLDASxxxxx:XXXXX. Defaulting it to 15 seconds
9/21/18 03:55:23 PM CDT [INFO] [WebServerMonitor] Loaded 1 valid web server configuration(s).
9/21/18 03:55:38 PM CDT [WARN] [WebServerMonitor] Unable to detect expected metrics for the server LifecycleOne_Proxy-Staging. Please check whether the base type of this server and performance metrics url are correct or not.