0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-05-12 12:42:09 +00:00
netdata_netdata/collectors/python.d.plugin/postgres
Ilya Mashchenko 5286dae8eb python.d.plugin update ()
<!--
Describe the change in summary section, including rationale and degin decisions.
Include "Fixes #nnn" if you are fixing an existing issue.

In "Component Name" section write which component is changed in this PR. This
will help us review your PR quicker.

If you have more information you want to add, write them in "Additional
Information" section. This is usually used to help others understand your
motivation behind this change. A step-by-step reproduction of the problem is
helpful if there is no related issue.
-->

##### Summary
Fix: 

`python.d.plugin` updates:
  * remove `retries` option 
  * make `penalty` configurable (enabled by default, max is 10 minutes)

> penalty indicates whether to apply penalty to update_every in case of failures.
> Penalty will increase every 5 failed updates in a row. Maximum penalty is 10 minutes.
> penalty: yes

##### Component Name

`python.d.plugin`

##### Additional Information
2018-12-07 10:15:03 +01:00
..
Makefile.inc Fix make dist () 2018-10-16 15:26:28 +03:00
postgres.chart.py python.d.plugin update () 2018-12-07 10:15:03 +01:00
postgres.conf python.d.plugin update () 2018-12-07 10:15:03 +01:00
README.md modularized all source code () 2018-10-15 23:16:42 +03:00

postgres

Module monitors one or more postgres servers.

Requirements:

  • python-psycopg2 package. You have to install it manually.

Following charts are drawn:

  1. Database size MB
  • size
  1. Current Backend Processes processes
  • active
  1. Write-Ahead Logging Statistics files/s
  • total
  • ready
  • done
  1. Checkpoints writes/s
  • scheduled
  • requested
  1. Current connections to db count
  • connections
  1. Tuples returned from db tuples/s
  • sequential
  • bitmap
  1. Tuple reads from db reads/s
  • disk
  • cache
  1. Transactions on db transactions/s
  • committed
  • rolled back
  1. Tuples written to db writes/s
  • inserted
  • updated
  • deleted
  • conflicts
  1. Locks on db count per type
  • locks

configuration

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.