This blog post is the first in a series about how to monitor NGINX and make the most out of your web delivery infrastructure with NGINX Amplify:
We recently released the free public beta of NGINX Amplify, our new cloud‑based tool that gives you visibility and control of NGINX and NGINX‑delivered applications. NGINX Amplify receives information from a small agent which you install on your NGINX servers. It monitors NGINX and provides configuration analysis, graphs for specific metrics, dashboards that combine several metrics, and alerts.
In this first blog post in our series about how to monitor NGINX with NGINX Amplify, we walk you through the steps for creating an NGINX Amplify account and installing the agent on each of your NGINX servers. Then, we show you how to get started monitoring NGINX, including setting up an initial set of graphs, creating a simple dashboard, setting up an alert, and stepping through the configuration analysis.
In later blog posts, we’ll go more deeply into each of these capabilities, putting you well on the way to becoming an NGINX Amplify expert.
For more details about NGINX Amplify, see the related blog posts, our on‑demand webinar, and the official NGINX Amplify documentation on GitHub.
You can help NGINX Amplify monitor NGINX, NGINX Plus, and your app servers optimally from the start. Perform the following steps before you sign up:
To get a full range of metrics:
stub_status
is defined are readable by the NGINX Amplify agent; if so, the agent accesses them automatically.Creating an NGINX Amplify account gives you access to the cloud‑based software behind NGINX Amplify. However, NGINX Amplify doesn’t actually monitor NGINX or your app servers until you install the agent on each server, as described in the next section.
Follow these steps to create your NGINX Amplify account:
Click Sign up.
Congratulations! You now have access to NGINX Amplify.
Note: If you have problems using NGINX Amplify, click the question mark (?) icon in the lower right of the main screen to communicate directly with our team. You may also receive automated suggestions from the team as you install NGINX Amplify and start using it.
The next section explains how to install the agent on your NGINX servers.
The instructions for adding a server to NGINX Amplify appear on‑screen after you create your account, as described in the previous section. You can also view the instructions in three additional ways:
Follow these steps on each of your servers to install the NGINX Amplify agent and start monitoring NGINX:
sudo
command. (For you to be able to use this command, the local sudoers policy must grant you root privileges).Run this command to download the installation script (you can copy and paste the text below):
# curl -L -O https://raw.githubusercontent.com/nginxinc/nginx‑amplify‑agent/master/packages/install.sh
Run the install.sh
script using your API_KEY (you can copy and paste the text below, but make sure to copy and paste the actual API_KEY from the on‑screen instructions in NGINX Amplify). For example:
# API_KEY='1234567890abcdef' sh ./install.sh
The installation script runs automatically and sends output to your terminal as it progresses through roughly 15 steps. The NGINX Amplify agent then starts running.
As you add servers, graphs appear in the Preview area of the Graphs page, displaying predefined metrics for each server. Within a few minutes, the graphs begin populating with the collected statistics.
When you click a system name in the Systems area of the Graphs page, small versions of graphs for that system appear in the Preview area. You can then click on a small graph to see a larger version in the Graph Feed area on the right. Expand your browser window to see larger versions of the graphs in the Graph Feed area.
After adding a few systems, your NGINX Amplify screen looks something like the following.
Note: You can add the NGINX Amplify agent to servers that don’t run NGINX or NGINX Plus if you find it convenient to do so. However, the information that NGINX Amplify provides for such servers is minimal.
On the NGINX Amplify Dashboards page, you can configure custom graphs to report metrics of your choice. You can perform various operations on the incoming data, including filtering, summation and averaging of multiple metrics, and more. Use dashboards to monitor NGINX on specific servers or groups of servers, and to track specific microservices, entire applications, and more.
As an example, follow these steps to create an initial dashboard showing requests resulting in HTTP status code 401
Unauthorized
:
Choose the relevant metric from the drop‑down menu; in this case, it’s nginx.http.status.4xx. For NGINX Amplify list fields, such as this one, type in a character string to reduce the list of metrics to those that include the string you enter. For instance, you can type system to restrict the list to system metrics, or type nginx to restrict the list to NGINX metrics.
4xx
errors.In addition to monitoring NGINX in real time, NGINX Amplify can alert you when the value of a certain metric goes outside a range that you define. Properly set up, alerts give you peace of mind, because you learn about unexpected server behavior very quickly. In some cases, an alert can tell you about a problem before it becomes visible to users; in other cases, an alert can ensure that, when a problem is becoming visible to users, you’re not the last to know.
Two caveats:
Note: Every NGINX Amplify account has one predefined alert: you are alerted if NGINX Amplify goes down for more than two minutes. Remove this alert if you don’t need it.
Follow these steps to create an alert for checking a threshold for incoming bytes:
If you don’t specify one system, the alert applies to each of your systems.
When you install the agent software on a server, NGINX Amplify analyzes your configuration and generates a detailed report. The report includes status information and configuration advice:
Note: We recommend that you move to the most recent version of NGINX or NGINX Plus for optimal performance and security.
When you install the NGINX Amplify Agent on a system, we recommend that you review all sections of the report for actionable items, as follows:
In a future blog post, we’ll go into depth about how to use the information on the Reports page.
We’re happy to provide this introduction to NGINX Amplify. We’ve shown you how to sign up, download the NGINX Amplify agent for each covered system, and set up initial graphs, dashboards, and alerts – as well as how to quickly evaluate the reports you get for each system. Our hope is that this blog post encourages you to sign up, or shows you how to get the most out of NGINX Amplify if you’ve already done so. Future blog posts will go into more depth about how to get more out of NGINX Amplify.
We look forward to your using NGINX Amplify, and to your feedback about how to improve it further. Use the ? icon in NGINX Amplify to provide feedback, or send us a message in the Comments section below.
Sign up for free and start using NGINX Amplify today.
"This blog post may reference products that are no longer available and/or no longer supported. For the most current information about available F5 NGINX products and solutions, explore our NGINX product family. NGINX is now part of F5. All previous NGINX.com links will redirect to similar NGINX content on F5.com."