Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 487 Bytes

File metadata and controls

10 lines (8 loc) · 487 Bytes

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.