mirror of
https://github.com/YunoHost-Apps/netdata_ynh.git
synced 2024-09-03 19:46:33 +02:00
Provide example of nginx configuration for monitoring (closes #7)
This commit is contained in:
parent
07b42d219a
commit
f1f4b8072b
1 changed files with 11 additions and 2 deletions
13
README.md
13
README.md
|
@ -25,8 +25,17 @@ disrupting their core function._
|
||||||
**Further recommendations:**
|
**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:
|
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:
|
* 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`
|
* 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)
|
* 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)
|
* phpfpm: follow [these recommandations](https://github.com/firehol/netdata/tree/master/python.d#phpfpm)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue