English English French French Spanish Spanish German German
Geekflare is supported by our audience. We may earn affiliate commissions from buying links on this site.
Share on:

How to Monitor Nginx and PHP Applications with Amplify?

nginx amplify saas
Invicti Web Application Security Scanner – the only solution that delivers automatic verification of vulnerabilities with Proof-Based Scanning™.

Cloud-based performance monitoring and troubleshooting for Nginx and PHP-based applications

How do you currently monitor your Nginx and PHP applications?

Meet – Nginx Amplify

nginx-amplify

A SaaS-based monitoring solutions for Nginx open source, Plus, PHP-FPM application and underlying operating system components. Amplify is hosted in AWS, and it communicates through agent over TLS. The agent is available for all the primary operating system.

  • RHEL
  • CentOS
  • Ubuntu
  • debian
  • Amazon Linux
  • Fedora
  • FreeBSD

How does it work?

You need to install the agent on the server where Nginx and PHP application is running. The agent is lightweight and once installed, it will start pushing necessary logs and monitoring data to Amplify servers. Within a few minutes, metrics are available on Nginx Amplify dashboard.

Sounds easy.

Monitoring Metrics

There are some useful metrics monitored by Amplify. I am testing on my WordPress server which is running on Ubuntu, Nginx, PHP-FPM, MariaDB and could see the following.

Under Nginx, some of the important ones are following.

  • Number of current connections and requests
  • CPU and memory usage
  • Nginx and upstream take time to response
  • Requests split by protocol
  • Count of error request – 40x, 50x
  • Count of workers and file descriptors
  • Traffic served by bytes

And a lot more. All the metrics are displayed in easy to understand graphs and can be filtered by the timeline.

nginx-amplify-metrics

Under PHP-FPM, you will notice the following.

  • Current process by active, idle and total
  • Connection queue
  • Slow requests
  • Max process

nginx-amplify-php

Under System, a lot of OS/server metrics.

  • CPU, Disk, Swap and Memory utilization
  • Network traffic
  • Disk IO/IOPS
  • Disk latency
  • Average load

nginx-amplify-system

Pretty cool for performance monitoring and troubleshooting. Isn’t it?

Amplify got a dashboard which let you add the metrics you are interested in. You can create a dashboard and add them manually or push the metrics from the graph.

Alerting

Monitoring system without alerting is incomplete. Amplify got alerting covered.

You can choose the metrics and threshold to create an alert and get notified when its breached.

amplify-alerting

Setting up alerts is straightforward.

How to Install Nginx Amplify?

I loved the Amplify’s feature, and installation is easy. I was able to get it started in less than 10 minutes. As a best practice, you may want to try this in non-production to ensure everything is working as expected.

Since its SaaS solution, you got to create an account here.

  • Once account created, log in to Amplify, and you will be prompted with the agent installation instructions.

nginx-agent-installation-prompt

  • Next, you will be asked to confirm the configuration. The default configuration should contain this already but better confirm and adjust if needed.

nginx-amplify-configuration

  • Continue to finish the installation.

nginx-amplify-additional-metrics

You will need to add some additional configuration to monitor more metrics. You’ll find those here.

Once everything is good, you will notice metrics in the Amplify dashboard. I would strongly recommend taking a backup of configuration file before modifying. There are more to do, and you can check the official documentation to get an idea.

When you log in to Amplify, you will be redirected to Overview tab which looks like below.

nginx-amplify-overview

This is great! You can see the application availability and essential metrics at a glance.

Conclusion

Amplify is easy to set up and a perfect SaaS Nginx monitoring solution for small to enterprise business. The great thing about is, it got a free plan so you can try to see how it works. If you need help on Nginx, then check out this online course by Ray Viljoen.

Alternatively, you may also want to try out GoAccess – an open source monitoring utility for Nginx and Apache.

Thanks to our Sponsors
More great readings on Nginx
Power Your Business
Some of the tools and services to help your business grow.
  • Invicti uses the Proof-Based Scanning™ to automatically verify the identified vulnerabilities and generate actionable results within just hours.
    Try Invicti
  • Web scraping, residential proxy, proxy manager, web unlocker, search engine crawler, and all you need to collect web data.
    Try Brightdata
  • Semrush is an all-in-one digital marketing solution with more than 50 tools in SEO, social media, and content marketing.
    Try Semrush
  • Intruder is an online vulnerability scanner that finds cyber security weaknesses in your infrastructure, to avoid costly data breaches.
    Try Intruder