PostgreSQL plugin for server density monitoring system
Python
Pull request Compare This branch is 4 commits ahead of reinbach:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
PostgreSQL.py
README.textile

README.textile

Adds PostgreSQL Monitoring to Server Density

Overview

This plugins provides the following monitoring services

  • ensures we can connect to the database
  • gets version number
  • gets max connections count
  • gets current connections count
  • gets list of locks
  • gets logfile settings
  • if the server is a master, the number of connected slaves
  • if the server is a slave, its replication lag in seconds behind its master

Installation

Configuration

Add the necessary config settings to your /etc/sd-agent/config.cfg file. Eg,

[PostgreSQL]
postgres_database = yourdatabase
postgres_user = username
postgres_pass = password
postgres_host = hostname
postgres_port = port (optional, default is 5432)