Skip to content

More realistic PostgreSQL setup with dedicated users, database, and monitoring#3153

Merged
cyrille-leclerc merged 8 commits intoopen-telemetry:mainfrom
cyrille-leclerc:more-realistic-database-setup
Apr 8, 2026
Merged

More realistic PostgreSQL setup with dedicated users, database, and monitoring#3153
cyrille-leclerc merged 8 commits intoopen-telemetry:mainfrom
cyrille-leclerc:more-realistic-database-setup

Conversation

@cyrille-leclerc
Copy link
Copy Markdown
Member

@cyrille-leclerc cyrille-leclerc commented Mar 24, 2026

Changes

More realistic PostgreSQL setup with dedicated users, database, and monitoring

  • Replace the generic root/otelu users and otel database with a dedicated astronomy_db owned by astronomy_user, keeping the default postgres database untouched
  • Add monitoring_user with pg_monitor role for read-only observability access across all databases and schemas
  • Switch OTel Collector postgresql receiver to monitoring_user instead of the superuser
  • Enable pg_stat_statements on all databases via shared_preload_libraries and CREATE EXTENSION
  • Rename the Compose service and container from postgresql to astronomy-db for clarity; update POSTGRES_HOST accordingly
  • Set POSTGRES_PASSWORD to changeit for the default superuser
image

Merge Requirements

For new features contributions, please make sure you have completed the following
essential items:

  • CHANGELOG.md updated to document new feature additions
  • Appropriate documentation updates in the docs
  • Appropriate Helm chart updates in the helm-charts

Maintainers will not merge until the above have been completed. If you're unsure
which docs need to be changed ping the
@open-telemetry/demo-approvers.

…onitoring

- Replace the generic `root`/`otelu` users and `otel` database with a
  dedicated `astronomy_db` owned by `astronomy_user`, keeping the default
  `postgres` database untouched
- Add `monitoring_user` with `pg_monitor` role for read-only observability
  access across all databases and schemas
- Switch OTel Collector postgresql receiver to `monitoring_user` instead
  of the superuser
- Enable `pg_stat_statements` on all databases via
  `shared_preload_libraries` and `CREATE EXTENSION`
- Rename the Compose service and container from `postgresql` to
  `astronomy-db` for clarity; update `POSTGRES_HOST` accordingly
- Set `POSTGRES_PASSWORD` to `changeit` for the default superuser
@github-actions github-actions Bot added the helm-update-required Requires an update to the Helm chart when released label Mar 24, 2026
…onitoring

- Replace the generic `root`/`otelu` users and `otel` database with a
  dedicated `astronomy_db` owned by `astronomy_user`, keeping the default
  `postgres` database untouched
- Add `monitoring_user` with `pg_monitor` role for read-only observability
  access across all databases and schemas
- Switch OTel Collector postgresql receiver to `monitoring_user` instead
  of the superuser
- Enable `pg_stat_statements` on all databases via
  `shared_preload_libraries` and `CREATE EXTENSION`
- Rename the Compose service and container from `postgresql` to
  `astronomy-db` for clarity; update `POSTGRES_HOST` accordingly
- Set `POSTGRES_PASSWORD` to `changeit` for the default superuser
@cyrille-leclerc cyrille-leclerc marked this pull request as ready for review March 24, 2026 22:46
@cyrille-leclerc cyrille-leclerc requested a review from a team as a code owner March 24, 2026 22:46
Comment thread src/otel-collector/otelcol-config.yml Outdated
Comment thread docker-compose-tests.yml Outdated
@cyrille-leclerc cyrille-leclerc requested a review from ps48 April 7, 2026 07:15
@cyrille-leclerc cyrille-leclerc added this pull request to the merge queue Apr 8, 2026
Merged via the queue into open-telemetry:main with commit b29c662 Apr 8, 2026
37 checks passed
@cyrille-leclerc cyrille-leclerc deleted the more-realistic-database-setup branch April 8, 2026 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

helm-update-required Requires an update to the Helm chart when released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants