https://github.com/trailbehind/logslowpostgres
Docker container that runs a loop logging slow postgres queries
https://github.com/trailbehind/logslowpostgres
Last synced: 4 months 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 (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-11-10T15:21:32.000Z (over 4 years ago)
- Last Synced: 2025-01-11T13:13:11.866Z (6 months ago)
- Language: Shell
- Size: 2.93 KB
- Stars: 0
- Watchers: 22
- 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.