Skip to content
This repository has been archived by the owner on Aug 4, 2021. It is now read-only.

Every x time unit, query the cluster and log the replication lag to influx

Notifications You must be signed in to change notification settings

Magnetme/postgresql-replication-lag-influx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Magnet.me Logo

GitHub release Docker pulls Docker build Code Climate Github stars

postgresql-replication-lag-influx

We use the following simple script/Docker container at Magnet.me monitor the lag or our postgresql slaves continuously.

You can use the container like this:

docker run \
    -e INFLUX_URL=http://root:root@localhost:8096/infra \
    -e RATE=250 \
    -e PGUSER=replication \ 
    -e PGPASSWORD=yoursecret \ 
    -e SERVERS=localhost:5433,localhost:5434 \
    magnetme/postgresql-replication-lag-influx

About

Every x time unit, query the cluster and log the replication lag to influx

Resources

Stars

Watchers

Forks

Packages

No packages published