Monitor Bitnami Stacks with NGINX Amplify

Introduction

NGINX Amplify makes it possible to obtain system and NGINX metrics using a visual dashboard. This is useful to monitor the performance of your applications running on NGINX, as well as to monitor the overall health and status of your NGINX server.

This guide walks you through the process of using NGINX Amplify with a Bitnami stack running the NGINX server. It guides you through the process of installing the Amplify Agent on your NGINX server and updating the Bitnami stack configuration so that the Amplify Agent can begin monitoring server status and health.

Step 1: Install the Amplify Agent

NGINX Amplify works by installing an Amplify Agent on your NGINX host, which in turn sends metrics to the NGINX Amplify dashboard. However, to install the Amplify Agent, you must first obtain an API key from the NGINX Amplify dashboard. Follow these steps:

TIP: If you’re using a recent version of the Amplify Agent, this step is optional as the information will be automatically detected by the agent.

Edit the /etc/init.d/amplify-agent startup script and modify it to load the Bitnami environment variables, by adding the line below under the PATH variable definition:

. /opt/bitnami/scripts/setenv.sh

If your Bitnami stack includes PHP-FPM, you can optionally configure the Amplify Agent to collect PHP-FPM metrics. To do this, edit the /opt/bitnami/php/etc/php-fpm.conf file and uncomment the pm.status_path variable so that it looks like this:

Step 3: Verify the integration

The Amplify Agent should now begin sending data to the NGINX Amplify dashboard. To verify this, log in to the NGINX Amplify dashboard. You should now see metrics and data from your Bitnami NGINX Stack server, as shown below:

Useful links

To learn more about the topics discussed in this guide, use the links below: