pgterminate/config.yaml.example
Julien Riou 8709ee542b
feat: Include and exclude databases
- Add filters to include and exclude strings
- Use filters to include and exclude sessions (user and databases supported)
- Add tests to filters and terminator

Signed-off-by: Julien Riou <julien@riou.xyz>
2023-01-18 18:32:33 +01:00

32 lines
No EOL
712 B
Text

---
#host: 127.0.0.1
#port: 5432
#user: test
#password: ****
#interval: 1
#connect-timeout: 3
#idle-timeout: 300
#active-timeout: 10
#log-file: /var/log/pgterminate/pgterminate.log
#log-format: 'pid=%p user=%u db=%d client=%r state=%s state_duration=%m query=%q'
#pid-file: /var/run/pgterminate/pgterminate.pid
#log-destination: console|file|syslog
#syslog-ident: pgterminate
#syslog-facility: LOCAL0
#include-users:
# user1
# user2
#include-users-regex: "(user1|user2)"
#exclude-users:
# user1
# user2
#exclude-users-regex: "(user1|user2)"
#include-databases:
# db1
# db2
#include-databases-regex: "(db1|db2)"
#exclude-databases:
# db1
# db2
#exclude-databases-regex: "(db1|db2)"
#cancel