From 63db946b4d02307ba9246d79cab38ef28d888426 Mon Sep 17 00:00:00 2001 From: Ilya Date: Thu, 16 Mar 2017 10:19:04 +0900 Subject: [PATCH] python readme update: nginx_log removed, postgres added --- python.d/README.md | 102 ++++++++++++++++++++++++++++++--------------- 1 file changed, 69 insertions(+), 33 deletions(-) diff --git a/python.d/README.md b/python.d/README.md index cee2078f..9ef96992 100644 --- a/python.d/README.md +++ b/python.d/README.md @@ -307,12 +307,6 @@ If no configuration is given, module will attempt to connect to dovecot using un Module monitor elasticsearch performance and health metrics -**Requirements:** - * python `requests` package. - -You need to install it manually. (python-requests or python3-requests depending on the version of python). - - It produces: 1. **Search performance** charts: @@ -990,33 +984,6 @@ Without configuration, module attempts to connect to `http://localhost/stub_stat --- -# nginx_log - -Module monitors nginx access log and produces only one chart: - -1. **nginx status codes** in requests/s - * 2xx - * 3xx - * 4xx - * 5xx - -### configuration - -Sample for two vhosts: - -```yaml -site_A: - path: '/var/log/nginx/access-A.log' - -site_B: - name: 'local' - path: '/var/log/nginx/access-B.log' -``` - -When no configuration file is found, module tries to parse `/var/log/nginx/access.log` file. - ---- - # nsd Module uses the `nsd-control stats_noreset` command to provide `nsd` statistics. @@ -1162,6 +1129,75 @@ Configuration is not needed. --- +# postgres + +Module monitors one or more postgres servers. + +**Requirements:** + + * `python-psycopg2` package. You have to install to manually. + +Following charts are drawn: + +1. **Database size** MB + * size + +2. **Current Backend Processes** processes + * active + +3. **Write-Ahead Logging Statistics** files/s + * total + * ready + * done + +4. **Checkpoints** writes/s + * scheduled + * requested + +5. **Current connections to db** count + * connections + +6. **Tuples returned from db** tuples/s + * sequential + * bitmap + +7. **Tuple reads from db** reads/s + * disk + * cache + +8. **Transactions on db** transactions/s + * commited + * rolled back + +9. **Tuples written to db** writes/s + * inserted + * updated + * deleted + * conflicts + +10. **Locks on db** count per type + * locks + +### configuration + +```yaml +socket: + name : 'socket' + user : 'postgres' + database : 'postgres' + +tcp: + name : 'tcp' + user : 'postgres' + database : 'postgres' + host : 'localhost' + port : 5432 +``` + +When no configuration file is found, module tries to connect to TCP/IP socket: `localhost:5432`. + +--- + # redis Get INFO data from redis instance. -- 2.39.2