Skip to content

Conversation

@arosenkranz
Copy link
Collaborator

This PR fixes broken log messages from stderr that were showing up in the Log Explorer:

  • updates postgres.conf to use json logs and turns on log rotation
  • updates postgres docker configuration to run a cronjob
  • updates docker compose file to set up a postgres log volume and configuration with dd-agent

@arosenkranz arosenkranz self-assigned this Oct 24, 2024
@arosenkranz arosenkranz requested review from a team as code owners October 24, 2024 20:26
Copy link
Contributor

@tammergalal tammergalal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@arosenkranz arosenkranz merged commit 88a5ddc into main Oct 25, 2024
@arosenkranz arosenkranz deleted the TRAIN-2439-postgres-logs branch October 25, 2024 13:26
COPY ./scripts/postgresql.conf /postgresql.conf

# Create log directory and set permissions
RUN mkdir -p /var/log/pg_log && \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not let the volume mount do the work for you? You could run cron on the host, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants