Skip to content

[PostgreSQL] Add checkpointer data stream#18428

Open
giorgi-imerlishvili-elastic wants to merge 2 commits intoelastic:mainfrom
giorgi-imerlishvili-elastic:postgresql-checkpointer-datastream
Open

[PostgreSQL] Add checkpointer data stream#18428
giorgi-imerlishvili-elastic wants to merge 2 commits intoelastic:mainfrom
giorgi-imerlishvili-elastic:postgresql-checkpointer-datastream

Conversation

@giorgi-imerlishvili-elastic
Copy link
Copy Markdown
Contributor

@giorgi-imerlishvili-elastic giorgi-imerlishvili-elastic commented Apr 16, 2026

Proposed commit message

Adds checkpointer data stream metrics introduced in PostgreSQL 17

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.
  • I have verified that any added dashboard complies with Kibana's Dashboard good practices

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

Screenshots

@giorgi-imerlishvili-elastic giorgi-imerlishvili-elastic requested a review from a team as a code owner April 16, 2026 11:19
@giorgi-imerlishvili-elastic giorgi-imerlishvili-elastic added enhancement New feature or request Integration:postgresql PostgreSQL Team:Obs-InfraObs Observability Infrastructure Monitoring team [elastic/obs-infraobs-integrations] labels Apr 16, 2026
logging_collector = 'on'
log_directory = '/var/log/postgresql'
log_line_prefix = '%m [%p] %q%u@%d '
EOF
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Low docker-entrypoint-initdb.d/0-enable-logging.sh:21

The script sets log_directory = '/var/log/postgresql' and logging_collector = 'on' but does not ensure the directory is writable by PostgreSQL. The parent-level script at packages/postgresql/_dev/deploy/docker/docker-entrypoint-initdb.d/0-enable-logging.sh includes chmod a+wx /var/log/postgresql for this purpose. Without this, the logging collector fails to write and PostgreSQL may crash or run without logs, breaking the checkpointer test environment.

+EOF
+
+chmod a+wx /var/log/postgresql
🤖 Copy this AI Prompt to have your agent fix this:
In file packages/postgresql/data_stream/checkpointer/_dev/deploy/docker/docker-entrypoint-initdb.d/0-enable-logging.sh around line 21:

The script sets `log_directory = '/var/log/postgresql'` and `logging_collector = 'on'` but does not ensure the directory is writable by PostgreSQL. The parent-level script at `packages/postgresql/_dev/deploy/docker/docker-entrypoint-initdb.d/0-enable-logging.sh` includes `chmod a+wx /var/log/postgresql` for this purpose. Without this, the logging collector fails to write and PostgreSQL may crash or run without logs, breaking the checkpointer test environment.

@elasticmachine
Copy link
Copy Markdown

elasticmachine commented Apr 16, 2026

💔 Build Failed

Failed CI Steps

History

cc @giorgi-imerlishvili-elastic

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

Labels

enhancement New feature or request Integration:postgresql PostgreSQL Team:Obs-InfraObs Observability Infrastructure Monitoring team [elastic/obs-infraobs-integrations]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants