![]() |
3 years ago | |
---|---|---|
.. | ||
Makefile.inc | 6 years ago | |
README.md | 3 years ago | |
postgres.chart.py | 3 years ago | |
postgres.conf | 3 years ago |
Collects database health and performance metrics.
python-psycopg2
package. You have to install it manually and make sure that it is available to the netdata
user, either using pip
, the package manager of your Linux distribution, or any other method you prefer.
PostgreSQL v9.4+
Following charts are drawn:
Database size MB
Current Backend Processes processes
Current Backend Process Usage percentage
Write-Ahead Logging Statistics files/s
Checkpoints writes/s
Current connections to db count
Tuples returned from db tuples/s
Tuple reads from db reads/s
Transactions on db transactions/s
Tuples written to db writes/s
Locks on db count per type
Standby delta KB
Standby lag seconds
Average number of blocking transactions in db processes
Edit the python.d/postgres.conf
configuration file using edit-config
from the Netdata config
directory, which is typically at /etc/netdata
.
cd /etc/netdata # Replace this path with your Netdata config directory, if different
sudo ./edit-config python.d/postgres.conf
When no configuration file is found, the module tries to connect to TCP/IP socket: localhost:5432
.
socket:
name : 'socket'
user : 'postgres'
database : 'postgres'
tcp:
name : 'tcp'
user : 'postgres'
database : 'postgres'
host : 'localhost'
port : 5432