{"id":76074,"date":"2026-03-16T18:51:22","date_gmt":"2026-03-16T15:51:22","guid":{"rendered":"https:\/\/cloudspinx.com\/?p=76074"},"modified":"2026-03-16T18:51:22","modified_gmt":"2026-03-16T15:51:22","slug":"monitor-nginx-web-server-using-nginx-amplify-agent","status":"publish","type":"post","link":"https:\/\/computingforgeeks.com\/monitor-nginx-web-server-using-nginx-amplify-agent\/","title":{"rendered":"Monitor Nginx Web Server using NGINX Amplify Agent"},"content":{"rendered":"\n<p>Nginx Amplify is a cloud based open-source monitoring tool for Nginx, PHP and MySQL  applications. It can be used to monitor the performance of your Nginx webserver and also point out errors in your configuration if any, for troubleshooting.<\/p>\n\n\n\n<p>The agent is installed to the host where Nginx is running, it then intelligently collects various metrics and metadata and sends them to the backend for storage and visualization.<\/p>\n\n\n\n<p>Nginx Amplify collects the following metadata from your instance:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>NGINX metrics &#8211; Nginx log files, Nginx process state, Nginx plus status API etc.<\/li>\n\n\n\n<li>System metrics &#8211; Various metrics from the instance where Nginx is installed e.g CPU usage, network traffic and memory usage.<\/li>\n\n\n\n<li>MySQL metrics &#8211; MySQL process status, other general metrics e.g current connections, current queries etc.<\/li>\n\n\n\n<li>PHP-FPM metrics &#8211; PHP-FPM pool status.<\/li>\n\n\n\n<li>System Metadata &#8211; The basic information about the Operating System where the the agent runs.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">Installing Nginx Amplify<\/h4>\n\n\n\n<p>Add the following configuration file to the <code>\/etc\/nginx\/conf.d\/<\/code> directory that will be used to scrap metrics for nginx status.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo vim \/etc\/nginx\/conf.d\/stub_status.conf\n\nserver {\n    listen 127.0.0.1:80;\n    server_name 127.0.0.1;\n    location \/nginx_status {\n        stub_status on;\n        access_log off;\n        allow 127.0.0.1;\n        deny all;\n    }\n}<\/code><\/pre>\n\n\n\n<p>Confirm that configuration files in <code>\/etc\/nginx\/conf.d<\/code>\/ have been included in the main configuration file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>grep -i include\\.*conf nginx.conf<\/code><\/pre>\n\n\n\n<p>Check if the Nginx configuration syntax is okay :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-ast-global-color-1-color\">sudo nginx -t <\/mark>\nnginx: the configuration file \/etc\/nginx\/nginx.conf syntax is ok\nnginx: configuration file \/etc\/nginx\/nginx.conf test is successful<\/code><\/pre>\n\n\n\n<p>Restart Nginx process:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo service nginx reload<\/code><\/pre>\n\n\n\n<p>You can verify if the metrics are being scrapped by using <code>curl<\/code>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-ast-global-color-1-color\">curl http:\/\/127.0.0.1\/nginx_status<\/mark>\nActive connections: 2 \nserver accepts handled requests\n 3280 3280 11339 \nReading: 0 Writing: 1 Waiting: 1 <\/code><\/pre>\n\n\n\n<p>Now, you need to create a free account at <a aria-label=\" (opens in a new tab)\" class=\"rank-math-link\" href=\"https:\/\/amplify.nginx.com\/signup\/\" target=\"_blank\" rel=\"noreferrer noopener\">Nginx Amplify portal<\/a>. Upon signing up, you will be prompted with agent installation instructions, which have the API key for your account. Run the commands on your instance as indicated below.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"786\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2025\/04\/Monitor-Nginx-Web-Server-using-NGINX-Amplify-Agent-01-1024x786.png\" alt=\"\" class=\"wp-image-81401\" title=\"\" srcset=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2025\/04\/Monitor-Nginx-Web-Server-using-NGINX-Amplify-Agent-01-1024x786.png 1024w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2025\/04\/Monitor-Nginx-Web-Server-using-NGINX-Amplify-Agent-01-300x230.png 300w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2025\/04\/Monitor-Nginx-Web-Server-using-NGINX-Amplify-Agent-01-768x590.png 768w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2025\/04\/Monitor-Nginx-Web-Server-using-NGINX-Amplify-Agent-01-1536x1180.png 1536w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2025\/04\/Monitor-Nginx-Web-Server-using-NGINX-Amplify-Agent-01-547x420.png 547w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2025\/04\/Monitor-Nginx-Web-Server-using-NGINX-Amplify-Agent-01-80x60.png 80w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2025\/04\/Monitor-Nginx-Web-Server-using-NGINX-Amplify-Agent-01-696x535.png 696w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2025\/04\/Monitor-Nginx-Web-Server-using-NGINX-Amplify-Agent-01-1068x820.png 1068w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2025\/04\/Monitor-Nginx-Web-Server-using-NGINX-Amplify-Agent-01.png 1664w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p>Also, modify the logging attribute to enable Nginx Amplify agent to get the metrics from the logs:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2021\/01\/image.png\" alt=\"\" class=\"wp-image-13241\" title=\"\"><\/figure>\n<\/div>\n\n\n<p>After a successful installation, you will be able to see the metrics appear on the Amplify dashboard for the host after one minute. The metrics are normally sent to the dashboard with an interval of one minute. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2021\/01\/monitor-nginx-webserver-using-nginx-amplify2.png\" alt=\"\" class=\"wp-image-13242\" title=\"\"><\/figure>\n\n\n\n<p>You can also get the system metrics for the host:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2021\/01\/monitor-nginx-webserver-using-nginx-amplify-agent.png\" alt=\"\" class=\"wp-image-13243\" title=\"\"><\/figure>\n\n\n\n<p>You can also configure alerts to your email address.<\/p>\n\n\n\n<p>That&#8217;s it! Your Nginx dashboard is ready for use. Cheers!<\/p>\n\n\n\n<p>More guides:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/computingforgeeks.com\/installing-nginx-with-php-fpm-on-ubuntu\/\">Installing Nginx With PHP-FPM on Ubuntu<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/computingforgeeks.com\/install-wordpress-with-nginx-on-ubuntu\/\">Install WordPress with Nginx on Ubuntu<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/computingforgeeks.com\/how-to-install-nginx-with-php-fpm-on-alpine-linux\/\">How To Install Nginx with PHP-FPM on Alpine Linux<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Nginx Amplify is a cloud based open-source monitoring tool for Nginx, PHP and MySQL applications. It can be used to monitor the performance of your Nginx webserver and also point out errors in your configuration if any, for troubleshooting. The agent is installed to the host where Nginx is running, it then intelligently collects various &#8230; <a title=\"Monitor Nginx Web Server using NGINX Amplify Agent\" class=\"read-more\" href=\"https:\/\/computingforgeeks.com\/monitor-nginx-web-server-using-nginx-amplify-agent\/\" aria-label=\"Read more about Monitor Nginx Web Server using NGINX Amplify Agent\">Read more<\/a><\/p>\n","protected":false},"author":3,"featured_media":81411,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[299,47,50],"tags":[39578],"class_list":["post-76074","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-how-to","category-linux","category-linux-tutorials","tag-nginx-amplify-agent"],"_links":{"self":[{"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/posts\/76074","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/comments?post=76074"}],"version-history":[{"count":0,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/posts\/76074\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/media\/81411"}],"wp:attachment":[{"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/media?parent=76074"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/categories?post=76074"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/tags?post=76074"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}