This talk is divided into multiple parts, starting with a basic introduction into the popular opensource database management software postgresql.
Building upon that operational aspects of a postgresql cluster instance will be discussed with a focus on what can, should and must be monitored and what kind of tools and nagios related plugins are available.
The final part of the talk gives an insight into the complex and distributed nature of the postgresql.org infrastructure and how nagios plays a crucial role as the central monitoring and alerting platform for the sysadmin team.
Unveiling Design Patterns: A Visual Guide with UML Diagrams
OSMC 2008 | PostgreSQL Monitoring - Introduction, Internals And Monitoring Strategies for postgresql.org by Stefan Kaltenbrunner
1. 1
PostgreSQL, PostgreSQL monitoring
and monitoring postgresql.org
Stefan Kaltenbrunner
stefan@kaltenbrunner.cc
http://www.kaltenbrunner.cc/blog
Nagios conference
2008
Nuremberg, Germany
September 2008
2. About myself
Stefan Kaltenbrunner
Senior Systems Architect at conova
communications
Major contributor to PostgreSQL project
Infrastructure and Webteam
Patches and Portability
5. PostgreSQL
BSD licenced ORDBMS
Opensource Project
20 year old, 13 years of OSS
Fast, reliable and strong community
Adapted and used as the base for
commercial and proprietary solutions
6. PostgreSQL
~900.000 lines of code
hundreds of subprojects
~200 active developers
http://ohloh.netprojects/postgres/
16. Monitoring PostgreSQL
Piece of software – needs CPU, RAM
and Disk
Current state
Historic state
Trends
Application specific information
Slow queries
Errors
Internal state
18. PostgreSQL Monitoring
Direct and indirect IO, CPU and Memory
usage
Maintenance tasks
Background activity
Average and worst case latency
Application specific uses
23. Tools - check_postgres.pl
Swiss army knife of status monitoring
Tablesizes, Transaction status,
replication, maintainance operations,
locks, number of connections and query
runtime
MRTG mode
Must have for any nagios based
PostgreSQL monitoring