8-13 833 views
https://amplify.nginx.com/dashboard/
Please install the Amplify Agent on a new host system to start monitoring:
- Use SSH to connect and log in to the system that you want to monitor.
- Download install script using curl (1) or wget (1).
curl -L -O https://github.com/nginxinc/nginx-amplify-agent/raw/master/packages/install.shor
wget https://github.com/nginxinc/nginx-amplify-agent/raw/master/packages/install.sh - Run the following command as root to install the Amplify Agent package.
API_KEY='cb397f25fe630005....' sh ./install.shContinue
- After a successful installation, the new system appears in the list on the left in about 1 min or so.
Add the stub_status configuration as follows.
Use root privileges to change the NGINX configuration.
- Change the current working directory to /etc/nginx .
cd /etc/nginx - Check that files from conf.d are automatically included in the NGINX configuration.
Otherwise you will have to add the stub_status module configuration directly to nginx.conf.grep -i include\.*conf nginx.conf - Create a new file with the stub_status configuration.
cat > conf.d/stub_status.confThen copy/paste the following lines to your terminal window and hit «Ctrl-D».
server { listen 127.0.0.1:80; server_name 127.0.0.1; location /nginx_status { stub_status on; allow 127.0.0.1; deny all; } }You may also grab the config snippet above from GitHub