From f1f4b8072bd483721d9862146efeaa2a35f6b571 Mon Sep 17 00:00:00 2001 From: Jimmy Monin Date: Thu, 18 Jan 2018 20:22:26 +0100 Subject: [PATCH] Provide example of nginx configuration for monitoring (closes #7) --- README.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d709a0f..9a96e3d 100644 --- a/README.md +++ b/README.md @@ -25,8 +25,17 @@ disrupting their core function._ **Further recommendations:** We don't allow YunoHost packages to make sensible changes to system files. So here are further customizations you can make to allow more monitoring: -* Nginx: - * requests/connections: follow [these recommandations](https://github.com/firehol/netdata/tree/master/python.d#nginx) to enable `/stab_status` (for example by putting the `location` section in `/etc/nginx/conf.d/yunohost_admin.conf` +* Nginx: + * requests/connections: follow [these recommandations](https://github.com/firehol/netdata/tree/master/python.d#nginx) to enable `/stab_status`; for example by putting this `location` section in `/etc/nginx/conf.d/yunohost_admin.conf`: +``` +location /stub_status { + stub_status on; + # Security: Only allow access from the IP below. + allow 127.0.0.1; + # Deny anyone else + deny all; + } +``` * weblogs: you can monitor all your nginx weblogs for errors; follow [these recommendations](https://github.com/firehol/netdata/tree/master/python.d#nginx_log) * phpfpm: follow [these recommandations](https://github.com/firehol/netdata/tree/master/python.d#phpfpm)