Enabling NGINX monitoring

For configuration of the NGINX monitoring, /etc/nginx/nginx.conf file needs to be updated as stated in our documentation here

If something is not correctly configured, this warning will show up in the UI, when you open the NGINX process:

mceclip0.png

Or warning like this in agent logs:

WARN | nstana-sensor-scheduler-thread-4 | Nginx | com.instana.sensor-nginx - 1.1.75 | Could not find Status URL in /etc/nginx/nginx.conf. Is it enabled?

Warning in the logs for NGINX Plus monitoring:

WARN | nstana-sensor-scheduler-thread-4 | Nginx | com.instana.sensor-nginx - 1.1.75 | Could not find Api URL in /etc/nginx/nginx.conf. Is it enabled?

So in these cases, it is clear that the Instana agent either can't find nginx.conf file or it is not recognizing the parts of the file needed for enabling of NGINX monitoring. Instana agent will first try to parse config and prefix args defined within nginx process (-c and -p parameters) and in case there are no parameters present it will fallback to /etc/nginx/nginx.conf.

Keep in mind that location /api and location /nginx_status parts should be inside http {} part of the nginx.conf file, with separate server {} for Instana, preferably that server should be the first inside http tag (this is stated in our Nginx docs: make sure that the module is enabled/available and add the following at the beginning of your NGINX configuration).

Have more questions? Submit a request

Comments