Skip to content

ekalinin/ganglia_pg_slave_delay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PostgreSQL Replication Delay in Ganglia

Installation

Do the follow on standby server:

$ git clone https://github.com/ekalinin/ganglia_pg_slave_delay
$ cd ganglia_pg_slave_delay
$ make install

Result

Pg Delay

How it works

Every 30 seconds cron task grabs current delay:

SELECT round(extract(epoch from (now() - pg_last_xact_replay_timestamp())))

And posts results into ganglia via gmetric.

LICENSE

See LICENSE file.

About

PostgreSQL Replication Delay in Ganglia

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages