Skip to content

Docker container that runs a loop logging slow postgres queries

License

Notifications You must be signed in to change notification settings

trailbehind/LogSlowPostgres

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LogSlowPostgres

Docker container that runs a loop logging slow postgres queries.

Configuration

All configuration is via environment variables.

  • PGHOST - host to connect to. Required.
  • SLOW_QUERY_LIMIT - minimum length query to log. Defaults to "5 minutes"
  • SLEEP_INTERVAL - interval in seconds to sleep between logging. Defaults to 300(5 minutes).

All other standard postgres environment variables are recongized.

About

Docker container that runs a loop logging slow postgres queries

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published