Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/trailbehind/logslowpostgres
- Owner: trailbehind
- License: mit
- Created: 2020-10-26T18:40:16.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-11-10T15:21:32.000Z (about 4 years ago)
- Last Synced: 2023-04-21T10:26:35.780Z (over 1 year ago)
- Language: Shell
- Size: 2.93 KB
- Stars: 0
- Watchers: 23
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.