search cancel

Nginx monitoring two issues

book

Article ID: 230326

calendar_today

Updated On:

Products

CA Application Performance Management SaaS

Issue/Introduction

Follow-up issues to a previous case

1) Cannot set up APMIA /Nginx Extension and Nginx on the same system. Is this possible?

2) Need to pass host name as an environment variable to Docker

Environment

Release : SAAS

Component : Integration with APM

Resolution

1) Getting nginx extension/apmia and nginx in the same container.

we are not recommending to run apmia as part of nginx container, as when nginx server pods scale up APMIA needs to run in each pod. But yes we will support.

 

2) When APMIA runs in different container or pod

 

nginx probe supports below two environment parameters for APMIA hostname and port to update in docker environment . nginx.conf needs to be updated with these parameters, refer attached sample nginx file.

env COLLECTOR_AGENT_HOST;
env COLLECTOR_AGENT_PORT;

 

These env parameters can be overridden in docker-compose.yml or can also be passed while starting the nginx docker image as below.

     ex: docker run -e COLLECTOR_AGENT_HOST=lvndev004220.bpc.broadcom.net -e COLLECTOR_AGENT_PORT=5005 -p 80:8888 -d 94768cdb3336

 

Please refer below docops link for nginx yml file and environment parameters.

https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/dx-apm-saas/SaaS/implementing-agents/infrastructure-agent/nginx-monitoring/Install-and-Configure-NGINX-Extension/Universal-Monitoring-Agent-for-NGINX-Extension.html