Weitere ähnliche Inhalte Ähnlich wie How to monitor NGINX (20) Mehr von Server Density (20) Kürzlich hochgeladen (20) How to monitor NGINX1. How to monitor:
Nginx
David Mytton
Hangout on Air - Oct 2014
blog.serverdensity.com/monitor-nginx/
8. Server Density Architecture
● ~100 servers - Ubuntu 12.04
● 50:50 virtual/dedicated
● 200TB/m processed data
● Nginx, Python, MongoDB
9. Key metrics
● Requests
● Connections
● Status codes
● Server performance
16. Status codes
● 2xx = Success
● 3xx = Redirect
● 4xx = Client error
● 5xx = Server error
20. Status codes
$ ngxtop
running for 411 seconds, 64332 records processed: 156.60 req/sec
Summary:
| count | avg_bytes_sent | 2xx | 3xx | 4xx | 5xx |
|---------+------------------+-------+-------+-------+-------|
| 64332 | 2775.251 | 61262 | 2994 | 71 | 5 |
github.com/lebinh/ngxtop
27. Key metrics
● Requests
● Connections
● Status codes
● Server performance
29. Summary
● Determine baseline key metrics
● Nginx metrics + server performance
● Manual tools for real time
30. Summary
● Determine baseline key metrics
● Nginx metrics + server performance
● Manual tools for real time
● Set up a monitoring product
31. Useful resources
● http://nginx.org/en/docs/http/ngx_http_stub_status_module.html
● http://nginx.org/en/docs/http/ngx_http_status_module.html
● https://blog.serverdensity.com/monitor-nginx
● https://www.serverdensity.com/plugins/nginx