Monitor Document to App Metrics fails when using all apps proxy
search cancel

Monitor Document to App Metrics fails when using all apps proxy

book

Article ID: 298372

calendar_today

Updated On:

Products

VMware Tanzu Application Service for VMs

Issue/Introduction

If you have Configured Proxy Settings for All Apps, setting the HTTP_PROXY, HTTPS_PROXY and NO_PROXY environment variables with cf set-running-environment-variable-group; trying to setup a monitor document with App Metrics, setting webhook_url atribute, can fail with error message:

 {"error":"Unexpected error occurrence","exception":"Check App Metrics Logs for more information"} 

 


Environment

Product Version: 2.12

Resolution

The problem here is that App Metrics application doesn't take into account NO_PROXY env var, but only HTTP_PROXY and HTTPS_PROXY. This will cause a failure when the /monitor-documents endpoint tests webhook_url since it will fail accessing it through the proxy.

R&D is aware of it and they will create a change to fix it in future releases.

In the meantime, as a workaround, you can exclude the App Metrics app from the global setting by setting the proxy environment variables for HTTP_PROXY and/or HTTPS_PROXY to an empty value by running
cf target -o system -s app-metrics-v2
cf set-env appmetrics HTTP_PROXY ''