Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add postgres log rotation #210

Merged
merged 1 commit into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions agent-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ db:
log_min_duration_statement: '10s'
log_autovacuum_min_duration: 0
log_destination: 'csvlog'
log_filename: 'postgresql-%d.log'
log_rotation_age: '1d'
log_rotation_size: '100MB'
log_truncate_on_rotation: on
ssl: off
timezone: "UTC"
password_encryption: scram-sha-256
Expand Down
7 changes: 4 additions & 3 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,24 +108,25 @@
work_mem: 10MB
max_wal_size: 4GB
log_autovacuum_min_duration: 0
log_connections: on

Check warning on line 111 in chart/values.yaml

View workflow job for this annotation

GitHub Actions / lint

111:22 [truthy] truthy value should be one of [false, true]
log_destination: "stderr"
log_directory: "/var/log/postgresql"
log_file_mode: 0644
log_filename: "postgresql.log"
log_filename: "postgresql-%d.log"
log_line_prefix: "%m [%p] %q[user=%u,db=%d,app=%a] "
log_lock_waits: on

Check warning on line 117 in chart/values.yaml

View workflow job for this annotation

GitHub Actions / lint

117:21 [truthy] truthy value should be one of [false, true]
log_min_duration_statement: "1s"
log_rotation_age: 0
log_rotation_size: 0
log_rotation_age: '1d'
log_rotation_size: '100MB'
log_truncate_on_rotation: on

Check warning on line 121 in chart/values.yaml

View workflow job for this annotation

GitHub Actions / lint

121:31 [truthy] truthy value should be one of [false, true]
log_statement: "all"
log_temp_files: 0
log_timezone: "UTC"
logging_collector: on

Check warning on line 125 in chart/values.yaml

View workflow job for this annotation

GitHub Actions / lint

125:24 [truthy] truthy value should be one of [false, true]
ssl: off

Check warning on line 126 in chart/values.yaml

View workflow job for this annotation

GitHub Actions / lint

126:10 [truthy] truthy value should be one of [false, true]
timezone: "UTC"
password_encryption: scram-sha-256
db_user_namespace: off

Check warning on line 129 in chart/values.yaml

View workflow job for this annotation

GitHub Actions / lint

129:24 [truthy] truthy value should be one of [false, true]
extra_float_digits: 0
secretKeyRef:
name: incident-commander-postgres
Expand Down
Loading