Integrated Monitoring for PostgreSQL



Similar documents
Monitoring PostgreSQL database with Verax NMS

Maintaining Non-Stop Services with Multi Layer Monitoring

A SURVEY ON AUTOMATED SERVER MONITORING

Keep an eye on your PostgreSQL clusters

PGCon PostgreSQL Performance Pitfalls

TPAf KTl Pen source. System Monitoring. Zenoss Core 3.x Network and

PANDORA FMS NETWORK DEVICES MONITORING

Network Monitoring with SNMP

Configuring SNMP Cisco and/or its affiliates. All rights reserved. 1

Network Monitoring and Management. Keeping a close eye on your network. Case MAR Entity Manager Module

PANDORA FMS NETWORK DEVICE MONITORING

RUGGEDCOM NMS for Linux v1.6

Performance Tuning and Optimizing SQL Databases 2016

Tk20 Network Infrastructure

Network Monitoring with SNMP

AGENDA: INTRODUCTION: 1. How is our cloud monitoring setup? 2. Which are the tools used? 3. How do we access monitoring dashboard?

Audit & Tune Deliverables

Monitoring MySQL. Presented by, MySQL & O Reilly Media, Inc. A quick overview of available tools

There are numerous ways to access monitors:

Monitoring MySQL. Kristian Köhntopp

How good can databases deal with Netflow data

Data sharing in the Big Data era

opensm2 Enterprise Performance Monitoring December 2010 Copyright 2010 Fujitsu Technology Solutions

Network Monitoring Comparison

Service Level Monitoring with Nagios. National Technical University of Athens Network Operations Center

Direct NFS - Design considerations for next-gen NAS appliances optimized for database workloads Akshay Shah Gurmeet Goindi Oracle

PeopleSoft Online Performance Guidelines

Unit 10 : An Introduction to Linux OS

Quick Installation Guide For Sensors with Cacti

Features Overview Guide About new features in WhatsUp Gold v12

Deployment and Monitoring. Pascal Robert MacTI

TRACE PERFORMANCE TESTING APPROACH. Overview. Approach. Flow. Attributes

Configuring Apache Derby for Performance and Durability Olav Sandstå

Grids & networks monitoring - practical approach

MONGODB - THE NOSQL DATABASE

An Overview of SNMP on the IMG

Oracle and Sybase, Concepts and Contrasts

EZManage V4.0 Release Notes. Document revision 1.08 ( )

Network Management and Monitoring Software

Applicable for: Secure Access Service MAG Series Junos Pulse Gateway Access Control Service. Juniper Networks SNMP Monitoring Guide

In Memory Accelerator for MongoDB

Monitoring of computer networks and applications using Nagios

MONITORING RED HAT GLUSTER SERVER DEPLOYMENTS With the Nagios IT infrastructure monitoring tool

Network monitoring systems & tools

HowTo Check. Microsoft Cluster. Functionality via SNMP

DNS (Domain Name System) is the system & protocol that translates domain names to IP addresses.

Securing and Accelerating Databases In Minutes using GreenSQL

Monitoring Windows Servers and Applications with GroundWork Monitor Enterprise 6.7. Product Application Guide October 8, 2012

The Complete Performance Solution for Microsoft SQL Server

Monitoring Your Network

MONITORING EMC GREENPLUM DCA WITH NAGIOS

Check Please! What your Postgres database wishes you would monitor. / Presentation

Network Management 2. Learning Objectives. Centralized network management? School of Business Eastern Illinois University

CYAN SECURE WEB APPLIANCE. User interface manual

PERFORMANCE TUNING FOR PEOPLESOFT APPLICATIONS

Monitor and Manage Your MicroStrategy BI Environment Using Enterprise Manager and Health Center

PostgreSQL Concurrency Issues

This watermark does not appear in the registered version - SNMP and OpenNMS. Part 1 SNMP.

Specific Simple Network Management Tools

ENTERPRISE-CLASS MONITORING SOLUTION FOR EVERYONE ALL-IN-ONE OPEN-SOURCE DISTRIBUTED MONITORING

Spectrum Scale. Problem Determination. Mathias Dietz

SNMP and OpenNMS. Part 2 OpenNMS

Network Monitoring. Dhruba Raj Bhandari (CCNA) Manager Systems Soaltee Crowne Plaza Kathmandu NEPAL

VirtualCenter Database Performance for Microsoft SQL Server 2005 VirtualCenter 2.5

Analyzing Network Servers. Disk Space Utilization Analysis. DiskBoss - Data Management Solution

District of Columbia Courts Attachment 1 Video Conference Bridge Infrastructure Equipment Performance Specification

Oracle Enterprise Manager 12c Microsoft SQL Server Plug-in version

Capacity Planning Process Estimating the load Initial configuration

Large Scale file storage with MogileFS. Stuart Teasdale Lead System Administrator we7 Ltd

Monitoring Tools for Network Services and Systems

Performance Tuning and Optimization for high traffic Drupal sites. Khalid Baheyeldin Drupal Camp, Toronto May 11 12, 2007

Managing Enterprise-wide Printing: The IT Challenge

MCN Health Monitor. The finger on the pulse of your critical systems. David Tayler Service Engineer, OSISoft

Printer Management Software

In this chapter, we want to make sure that your computer (and you) is ready for the Red Hat Linux installation.

MAGENTO HOSTING Progressive Server Performance Improvements


DSS. Diskpool and cloud storage benchmarks used in IT-DSS. Data & Storage Services. Geoffray ADDE

SQL Server 2012 Optimization, Performance Tuning and Troubleshooting

Managing and Monitoring Windows 7 Performance Lesson 8

Best of Breed of an ITIL based IT Monitoring. The System Management strategy of NetEye

WhatsUp Gold v11 Features Overview

Scaling Graphite Installations

Benchmarking filesystems and PostgreSQL shared buffers

NETWORK MONITORING & ALERTING SERVICES SERVICE DEFINITION

THE SNMP PROTOCOL THE SNMP REQUEST MIB SATELLAR 2DS/20DS SIMPLE NETWORK MANAGEMENT PROTOCOL SATELLAR MANAGEMENT WITH SNMP GET AND SET SMART RADIO

Using New Relic to Monitor Your Servers

Active Management Services

CS615 - Aspects of System Administration

Nagios introduction. Dhruba Raj Bhandari (CCNA) Additions by Phil Regnauld.

Skybot Scheduler Release Notes

Building A Better Network Monitoring System

HP LeftHand SAN Solutions

ACME Intranet Performance Testing

Fluke Networks NetFlow Tracker

Transcription:

Introduction Monitoring PostgreSQL Solutions Conclusion credativ limited 2nd April 2008

Introduction Monitoring PostgreSQL Solutions Conclusion Outline 1 Introduction 2 Monitoring PostgreSQL Statistics tables Portability 3 Solutions SNMP Nagios Munin 4 Conclusion

Introduction Monitoring PostgreSQL Solutions Conclusion Who am I? <tim.retout@credativ.co.uk> Involved with free software Debian GNU GNOME With credativ since September 2007 Systems administration Development

Introduction Monitoring PostgreSQL Solutions Conclusion Who am I? <tim.retout@credativ.co.uk> Involved with free software Debian GNU GNOME With credativ since September 2007 Systems administration Development

Introduction Monitoring PostgreSQL Solutions Conclusion Who am I? <tim.retout@credativ.co.uk> Involved with free software Debian GNU GNOME With credativ since September 2007 Systems administration Development

Introduction Monitoring PostgreSQL Solutions Conclusion What am I talking about? How to integrate monitoring solutions with PostgreSQL Portability across different PostgreSQL versions Sometimes monitoring needs fine-tuning by hand Outline Monitoring PostgreSQL What to monitor Solutions and examples How to monitor

Introduction Monitoring PostgreSQL Solutions Conclusion What am I talking about? How to integrate monitoring solutions with PostgreSQL Portability across different PostgreSQL versions Sometimes monitoring needs fine-tuning by hand Outline Monitoring PostgreSQL What to monitor Solutions and examples How to monitor

Introduction Monitoring PostgreSQL Solutions Conclusion What am I talking about? How to integrate monitoring solutions with PostgreSQL Portability across different PostgreSQL versions Sometimes monitoring needs fine-tuning by hand Outline Monitoring PostgreSQL What to monitor Solutions and examples How to monitor

Introduction Monitoring PostgreSQL Solutions Conclusion Statistics tables Portability Outline 1 Introduction 2 Monitoring PostgreSQL Statistics tables Portability 3 Solutions SNMP Nagios Munin 4 Conclusion

Introduction Monitoring PostgreSQL Solutions Conclusion Statistics tables Portability Types of monitoring History of data Current status Notifications Is the database accepting connections? Status over time Plotting graphs What was the highest number of concurrent connections this week? When was it?

Introduction Monitoring PostgreSQL Solutions Conclusion Statistics tables Portability Types of monitoring Source of data PostgreSQL statistics External sources Disk usage via du Connections via netstat External sources of data will tend to be less portable. Some PostgreSQL statistics will not appear in earlier releases.

Introduction Monitoring PostgreSQL Solutions Conclusion Statistics tables Portability Connections Check whether database is accepting connections (easy). Count number of current connections: SELECT COUNT(*) FROM pg_stat_activity; Compare with value of max connections.

Introduction Monitoring PostgreSQL Solutions Conclusion Statistics tables Portability Transactions Number of commits and rollbacks for each database: SELECT datname, xact_commit, xact_rollback FROM pg_stat_database;

Introduction Monitoring PostgreSQL Solutions Conclusion Statistics tables Portability Queries Summaries of number of inserts/updates/deletes: SELECT SUM(n_tup_ins), SUM(n_tup_upd), SUM(n_tup_del) FROM pg_stat_all_tables; Summaries of query plans: SELECT SUM(seq_scan), SUM(seq_tup_read), SUM(idx_scan), SUM(idx_tup_fetch) FROM pg_stat_all_tables;

Introduction Monitoring PostgreSQL Solutions Conclusion Statistics tables Portability Locks Summaries of locks held: SELECT mode, COUNT(mode) FROM pg_locks GROUP BY mode ORDER BY mode; This may need post-processing to work out which are exclusive locks.

Introduction Monitoring PostgreSQL Solutions Conclusion Statistics tables Portability Disk I/O Summary of disk I/O in terms of blocks read: SELECT SUM(heap_blks_read) FROM pg_statio_user_tables; SELECT SUM(idx_blks_read) FROM pg_statio_user_tables; SELECT SUM(toast_blks_read) FROM pg_statio_user_tables; SELECT SUM(tidx_blks_read) FROM pg_statio_user_tables; Swap read for hit to get the number of blocks read from memory. Caution! This does not take the operating system s disk cache into account!

Introduction Monitoring PostgreSQL Solutions Conclusion Statistics tables Portability Disk usage Obtaining the disk usage of a database is more difficult to do in a portable way across PostgreSQL releases. From version 8.1, there are SQL functions to do this: pg_database_size(name) pg_tablespace_size(name) Previous releases had a tool oid2name in contrib, but not all installations have this. If all else fails, analysis of VACUUM information is possible.

Introduction Monitoring PostgreSQL Solutions Conclusion Statistics tables Portability Disk usage Fall back gracefully: SELECT CASE EXISTS( SELECT COUNT(*) FROM pg_proc WHERE proname= pg_database_size ) WHEN true THEN... ELSE... END See discussion at: http://postgresql.org/docs/8.1/static/diskusage.html

Introduction Monitoring PostgreSQL Solutions Conclusion SNMP Nagios Munin Outline 1 Introduction 2 Monitoring PostgreSQL Statistics tables Portability 3 Solutions SNMP Nagios Munin 4 Conclusion

Introduction Monitoring PostgreSQL Solutions Conclusion SNMP Nagios Munin SNMP Simple Network Management Protocol Not simple Different implementations of agents possible

Introduction Monitoring PostgreSQL Solutions Conclusion SNMP Nagios Munin SNMP and PostgreSQL Need a MIB (Management Information Base) pgsnmpd - http://pgsnmpd.projects.postgresql.org/ 1.0 released 20 August 2007 Implements RFC 1697 (generic RDBMS MIB) Few PostgreSQL-specific statistics yet - plan is to create PGSQL-MIB Little visible activity currently

Introduction Monitoring PostgreSQL Solutions Conclusion SNMP Nagios Munin Nagios Popular monitoring software Sends notifications (Can draw graphs of statistics using a plugin) Very configurable, so can be complicated when learning Can speak SNMP

Introduction Monitoring PostgreSQL Solutions Conclusion SNMP Nagios Munin Nagios plugins Included in Nagios check pgsql command Tests whether PostgreSQL database is accepting connections User-contributed These do a lot more: http://bucardo.org/nagios/ http://pgfoundry.org/projects/nagiosplugins/

Introduction Monitoring PostgreSQL Solutions Conclusion SNMP Nagios Munin Nagios plugins Included in Nagios check pgsql command Tests whether PostgreSQL database is accepting connections User-contributed These do a lot more: http://bucardo.org/nagios/ http://pgfoundry.org/projects/nagiosplugins/

Introduction Monitoring PostgreSQL Solutions Conclusion SNMP Nagios Munin Munin Popular monitoring software Draws graphs Quite easy to set up Can send notifications, or can be integrated with Nagios

Introduction Monitoring PostgreSQL Solutions Conclusion SNMP Nagios Munin Munin and PostgreSQL PostgreSQL plugins in SVN Will not be in a stable release of Munin until they stabilize Should perhaps all be ported to POSIX shell, because not all installations have DBD::Pg.

Introduction Monitoring PostgreSQL Solutions Conclusion SNMP Nagios Munin Munin graphs

Introduction Monitoring PostgreSQL Solutions Conclusion SNMP Nagios Munin Munin graphs

Introduction Monitoring PostgreSQL Solutions Conclusion SNMP Nagios Munin Munin graphs

Introduction Monitoring PostgreSQL Solutions Conclusion Outline 1 Introduction 2 Monitoring PostgreSQL Statistics tables Portability 3 Solutions SNMP Nagios Munin 4 Conclusion

Introduction Monitoring PostgreSQL Solutions Conclusion Conclusion Integrating monitoring with PostgreSQL can be a powerful tool for database administrators. One day, it could work out of the box. But knowing how to customize these solutions may be useful. Thanks! Any questions? Feel free to email me to discuss anything covered here: <tim.retout@credativ.co.uk>

Introduction Monitoring PostgreSQL Solutions Conclusion Conclusion Integrating monitoring with PostgreSQL can be a powerful tool for database administrators. One day, it could work out of the box. But knowing how to customize these solutions may be useful. Thanks! Any questions? Feel free to email me to discuss anything covered here: <tim.retout@credativ.co.uk>