Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/trailbehind/logslowpostgres

Docker container that runs a loop logging slow postgres queries
https://github.com/trailbehind/logslowpostgres

Last synced: 3 days ago
JSON representation

Docker container that runs a loop logging slow postgres queries

Awesome Lists containing this project

README

        

# 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](https://www.postgresql.org/docs/9.1/libpq-envars.html) are recongized.